diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-07-04 19:16:27 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-07-04 19:16:27 +0000 |
| commit | 247baf298bf2425fd91297ea18d716e714cb3dc5 (patch) | |
| tree | cfe9277e1d8086d2b38b13f2caf75dea4b73c41e /src/base/arena.c | |
| parent | 157e2a29828f2ddbdf32e1c9e565b13e5e732e34 (diff) | |
- podpora bigAren :-)
- radar
git-svn-id: http://opensvn.csie.org/tuxanci_ng@90 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/base/arena.c')
| -rw-r--r-- | src/base/arena.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/base/arena.c b/src/base/arena.c index bd471a2..9de1dce 100644 --- a/src/base/arena.c +++ b/src/base/arena.c @@ -90,8 +90,8 @@ void findFreeSpace(arena_t *arena, int *x, int *y, int w, int h) assert( y != NULL ); do{ - z_x = random() % WINDOW_SIZE_X;//arena->w; - z_y = random() % WINDOW_SIZE_Y;//arena->h; + z_x = random() % (arena->w-w); + z_y = random() % (arena->h-h); }while( isFreeSpace(arena, z_x, z_y ,w ,h) == 0 ); *x = z_x; @@ -201,16 +201,10 @@ void eventArena(arena_t *arena) { int i; - //eventConflictTuxWithTeleport(arena->listTux, arena->listTeleport); - //eventConflictTuxWithShot(arena); - for( i = 0 ; i < 8 ; i++) { - eventMoveListShot(arena); checkShotIsInTuxScreen(arena); - //eventConflictShotWithWall(arena->listWall, arena->listShot); - //eventConflictShotWithTeleport(arena->listTeleport, arena->listShot); - //eventConflictShotWithPipe(arena->listPipe, arena->listShot); + eventMoveListShot(arena); eventConflictShotWithItem(arena); eventConflictTuxWithShot(arena); eventModule(); |