ok heres the code.....i dont have any asserts in it though
[edit] i only get this error in debug build [/edit]
[edit] i only get this error in debug build [/edit]
For Local obj:TGNetObject=EachIn GNetObjects(host) If GetGNetString(obj,SLOT_TYPE)="bullet" And GNetObjectLocal(obj)=True ' this is the line the error occurs at x=GetGNetInt(obj,SLOT_X) y=GetGNetInt(obj,SLOT_Y) f=GetGNetInt(obj,SLOT_F) lastup=GetGNetInt(obj,SLOT_LASTUPDATE) If f=0 And MilliSecs()=>lastup+100 x:+1 lastup=MilliSecs() ElseIf f=1 And MilliSecs()=>lastup+100 y:-1 lastup=MilliSecs() ElseIf f=2 And MilliSecs()=>lastup+100 x:-1 lastup=MilliSecs() ElseIf f=3 And MilliSecs()=>lastup+100 y:+1 lastup=MilliSecs() EndIf If mapsolid[x,y]=SOLID CloseGNetObject(obj) Continue EndIf For pobj:TGNetObject=EachIn GNetObjects(host) If GetGNetString(pobj,SLOT_TYPE)="player" If x=GetGNetInt(pobj,SLOT_X) And y=GetGNetInt(pobj,SLOT_Y) And GNetObjectLocal(pobj)=False CloseGNetObject(obj) EndIf EndIf Next SetGNetInt obj,SLOT_X,x SetGNetInt obj,SLOT_Y,y SetGNetInt obj,SLOT_LASTUPDATE,lastup EndIf Next