diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-03-16 16:32:38 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-03-16 16:32:38 +0000 |
| commit | 642a85360b3846b9e84c8a0e9671e23686313daf (patch) | |
| tree | 9da07aa0d3407ff70d1bb59bee2c3fa8b45209d0 /src/publicServer.c | |
| parent | 2c160370499826609371fa9621b8c31aa8a8566a (diff) | |
- obrazok co som zabudol odolslat
- rozrobene zdrojaky
git-svn-id: http://opensvn.csie.org/tuxanci_ng@20 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/publicServer.c')
| -rw-r--r-- | src/publicServer.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/publicServer.c b/src/publicServer.c index f76da76..ae229d5 100644 --- a/src/publicServer.c +++ b/src/publicServer.c @@ -37,6 +37,7 @@ void initPublicServer() initShot(); initTimer(); + arena = getArena(arenaId); addNewItem(arena->listItem, NULL); @@ -84,6 +85,17 @@ void findFreeSpace(int *x, int *y, int w, int h) void eventPublicServer() { + static my_time_t time = 0; + + if( time == 0 ) + { + time = getMyTime(); + } + + printf("time %d\n", getMyTime() - time ); + + time = getMyTime(); + eventConflictTuxWithTeleport(arena->listTux, arena->listTeleport); eventConflictTuxWithShot(arena->listTux, arena->listShot); @@ -95,9 +107,9 @@ void eventPublicServer() eventMoveListShot(arena->listShot); eventListItem(arena->listItem); eventListTux(arena->listTux); - eventNetMultiplayer(); eventTimer(); + eventNetMultiplayer(); } void quitPublicServer() |