@@ -83,7 +83,7 @@ public enum CLIENT_TYPE
8383
8484 // 服务端与客户端的版本号以及协议MD5
8585 public string serverVersion = "" ;
86- public string clientVersion = "0.6.0 " ;
86+ public string clientVersion = "0.6.1 " ;
8787 public string serverScriptVersion = "" ;
8888 public string clientScriptVersion = "0.1.0" ;
8989 public string serverProtocolMD5 = "" ;
@@ -807,6 +807,7 @@ public void onImportClientEntityDef(MemoryStream stream)
807807 propertysize -- ;
808808
809809 UInt16 properUtype = stream . readUint16 ( ) ;
810+ UInt32 properFlags = stream . readUint32 ( ) ;
810811 Int16 ialiasID = stream . readInt16 ( ) ;
811812 string name = stream . readString ( ) ;
812813 string defaultValStr = stream . readString ( ) ;
@@ -1502,7 +1503,8 @@ public void onUpdatePropertys_(Int32 eid, MemoryStream stream)
15021503 entity . setDefinedProptertyByUType ( utype , val ) ;
15031504 if ( setmethod != null )
15041505 {
1505- setmethod . Invoke ( entity , new object [ ] { oldval } ) ;
1506+ if ( propertydata . isBase ( ) || entity . inWorld )
1507+ setmethod . Invoke ( entity , new object [ ] { oldval } ) ;
15061508 }
15071509 }
15081510 }
@@ -1629,11 +1631,11 @@ public void Client_onEntityEnterWorld(MemoryStream stream)
16291631 _bufferedCreateEntityMessage . Remove ( eid ) ;
16301632
16311633 entity . isOnGound = isOnGound > 0 ;
1632- entity . __init__ ( ) ;
1633- entity . enterWorld ( ) ;
1634-
16351634 entity . set_direction ( entity . getDefinedPropterty ( "direction" ) ) ;
16361635 entity . set_position ( entity . getDefinedPropterty ( "position" ) ) ;
1636+
1637+ entity . __init__ ( ) ;
1638+ entity . enterWorld ( ) ;
16371639 }
16381640 else
16391641 {
@@ -1651,6 +1653,9 @@ public void Client_onEntityEnterWorld(MemoryStream stream)
16511653 entity . cellMailbox . className = entityType ;
16521654 entity . cellMailbox . type = Mailbox . MAILBOX_TYPE . MAILBOX_TYPE_CELL ;
16531655
1656+ entity . set_direction ( entity . getDefinedPropterty ( "direction" ) ) ;
1657+ entity . set_position ( entity . getDefinedPropterty ( "position" ) ) ;
1658+
16541659 _entityServerPos = entity . position ;
16551660 entity . isOnGound = isOnGound > 0 ;
16561661 entity . enterWorld ( ) ;
0 commit comments