diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-04-06 17:25:52 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-04-06 17:25:52 +0000 |
| commit | 35185452d7546ab56aa0040d7c2d68795c3f813f (patch) | |
| tree | 275025e31e94ed999019a12307dccf4fc6f9fc6a /src/proto.c | |
| parent | f3cc2306be924ba521243d38d2cdea8297bdf1eb (diff) | |
- synchronizuju sa aj veci
- preklady obsahuju aj font a velkost pismen
- upravy aby to slo
( po stahnut tejto verzii sa hra musi odinstalovat a znova naonstalovat )
git-svn-id: http://opensvn.csie.org/tuxanci_ng@43 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/proto.c')
| -rw-r--r-- | src/proto.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/proto.c b/src/proto.c index a646d9c..042ce7f 100644 --- a/src/proto.c +++ b/src/proto.c @@ -254,6 +254,7 @@ void proto_recv_event_server(client_t *client, char *msg) assert( client != NULL ); assert( msg != NULL ); + sscanf(msg, "%s %d", cmd, &action); proto_send_event_server(PROTO_SEND_BUT, client, client->tux, action); @@ -488,8 +489,9 @@ void proto_recv_additem_client(char *msg) sscanf(msg, "%s %d %d %d %d %d %d %d", cmd, &id, &type, &x, &y, &count, &frame, &author_id); - if( getItemID(getCurrentArena()->listItem, id) != NULL ) + if( ( item = getItemID(getCurrentArena()->listItem, id) ) != NULL ) { + item->lastSync = getMyTime(); return; } @@ -504,6 +506,7 @@ void proto_recv_additem_client(char *msg) item->id = id; item->count = count; item->frame = frame; + item->lastSync = getMyTime(); addList(getCurrentArena()->listItem, item); |