diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-03-25 21:23:08 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-03-25 21:23:08 +0000 |
| commit | ca324c005d511752b2bcdc21fdc7d6c46597469b (patch) | |
| tree | 050b5b836f26390ef44f67a2208fe47c161e8b62 /src/teleport.c | |
| parent | 6d43cfd6df88e1b6e94c63f9e8e9eb6775bdbf42 (diff) | |
- drobne upravy v kode
- vymazanie duplivitneho kodu pri "hre s GUI" a "public serverom"
git-svn-id: http://opensvn.csie.org/tuxanci_ng@36 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/teleport.c')
| -rw-r--r-- | src/teleport.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/teleport.c b/src/teleport.c index da7b740..6348c57 100644 --- a/src/teleport.c +++ b/src/teleport.c @@ -8,6 +8,7 @@ #include "shot.h" #include "net_multiplayer.h" #include "proto.h" +#include "arena.h" #ifndef PUBLIC_SERVER #include "layer.h" @@ -214,7 +215,7 @@ void eventTeleportTux(list_t *listTeleport, teleport_t *teleport, tux_t *tux) break; } - if( isFreeSpace(dist_x, dist_y, TUX_WIDTH, TUX_HEIGHT) ) + if( isFreeSpace(getCurrentArena(), dist_x, dist_y, TUX_WIDTH, TUX_HEIGHT) ) { setTuxProportion(tux, dist_x, dist_y); #ifndef PUBLIC_SERVER |