diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-05-02 16:57:36 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-05-02 16:57:36 +0000 |
| commit | 9058b5c0bfc9a05c9004cfbbcdd3bb85d80ed6fc (patch) | |
| tree | acf351bdd648594639005f71e7e7d8921bb70fcb /src/item.c | |
| parent | 29173b3199ea526b6f9de13ee9255db3900f3f42 (diff) | |
- o obsluhu odstaneni streli pri vybuchu sa stara server
- server sa _nemusi_ restartovat kazdych 49 dni
- uptime sa rata v sekundach, v statuse je aj nazov areny
- drobne upravy v kode ( vymazanie mensej duplicity kodu )
git-svn-id: http://opensvn.csie.org/tuxanci_ng@49 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/item.c')
| -rw-r--r-- | src/item.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -370,6 +370,11 @@ void eventConflictShotWithItem(list_t *listItem, list_t *listShot) item_t *thisItem; int i, j; + if( getNetTypeGame() == NET_GAME_TYPE_CLIENT ) + { + return; + } + assert( listItem != NULL ); assert( listShot != NULL ); @@ -416,7 +421,11 @@ void eventConflictShotWithItem(list_t *listItem, list_t *listShot) if( isDelShot ) { - //printf("del shot\n"); + if( getNetTypeGame() == NET_GAME_TYPE_SERVER ) + { + proto_send_delshot_server(PROTO_SEND_ALL, NULL, thisShot); + } + delListItem(listShot, i, destroyShot); i--; } |