From a370d2f5860a0f89ac44af857d1059885ad1d60f Mon Sep 17 00:00:00 2001 From: oroborus Date: Thu, 19 Jun 2008 19:28:04 +0000 Subject: - upravy v kode - prepis stirel pre space_t * - v kode su dva vyhladavacie algortmy, implicitne sa pouziva ten ktory funguje :) ten co nefunguje je zamakrovany makrom SUPPORT_ERROR a este ho musim doladit git-svn-id: http://opensvn.csie.org/tuxanci_ng@66 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/tux.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/tux.c') diff --git a/src/tux.c b/src/tux.c index 39094c8..c2db1f2 100644 --- a/src/tux.c +++ b/src/tux.c @@ -560,9 +560,9 @@ void eventConflictTuxWithShot(arena_t *arena) tux_t *thisTux; int i, j; - for( i = 0 ; i < arena->listShot->count ; i++ ) + for( i = 0 ; i < arena->spaceShot->list->count ; i++ ) { - thisShot = (shot_t *)arena->listShot->list[i]; + thisShot = (shot_t *)arena->spaceShot->list->list[i]; assert( thisShot != NULL ); listDoEmpty(listHelp); @@ -592,7 +592,7 @@ void eventConflictTuxWithShot(arena_t *arena) if( getNetTypeGame() != NET_GAME_TYPE_CLIENT ) { bombBallExplosion(thisShot); - delListItem(arena->listShot, i, destroyShot); + delObjectFromSpaceWithObject(arena->spaceShot, thisShot, destroyShot); i--; } @@ -605,7 +605,7 @@ void eventConflictTuxWithShot(arena_t *arena) } } - delListItem(arena->listShot, i, destroyShot); + delObjectFromSpaceWithObject(arena->spaceShot, thisShot, destroyShot); i--; continue; -- cgit v1.2.3