MSDN wrote: |
Remarks
The elapsed time is stored as a DWORD value. Therefore, the time will wrap around to zero if the system is run continuously for 49.7 days. |
Subgame's WhatsNew.txt wrote: |
----------------------------- version 1.34.13a --------------------------------
Fixed extreme lagging bug when subgame was stated when GetTickCount() returned negative values (Windows has been running without rebooting 25 days) |
Bak wrote: |
it probably affects the cycling of the players when in spec... and therefore will prevent antiwarp from being detected properly |
catid wrote: |
3/23/2005 17:10:26 imma look at that later tonight |
Quote: |
and how to fix it |
Code: Show/Hide void Host::spectateNext()
{ //... if (pp->ship != SHIP_Spectator && botInfo.db->noisySpectator) { // if (time - pp->lastPositionUpdate > 100) if (time - pp->lastPositionUpdate > 100 || time - pp->lastPositionUpdate < 0) // if (time - lastSpec > 20) if (time - lastSpec > 20 || time - lastSpec < 0) { // Request position if we've lost him pp->lastPositionUpdate = time; spectate(pp); } } //... } |