diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-07-08 16:35:02 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-07-08 16:35:02 +0000 |
| commit | 7386e93e32575bae21006d0300cbff4cf7a40926 (patch) | |
| tree | 5cec5aeddc3263880caf0a09f679ccd68586d4db /src/base/gun.c | |
| parent | 776577985a056407645a448f8332d6ce69d645a3 (diff) | |
- oprava chyby v configFile.h
- chat sa zapina/vypina ENTERom
- prepisany readKey()
- widget_textfiled obsahuje filter na znaky :)
- lasser je netrhany ale prestreluje pen v arene "na dobru noc", ked sa uplne priblizite
git-svn-id: http://opensvn.csie.org/tuxanci_ng@124 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/base/gun.c')
| -rw-r--r-- | src/base/gun.c | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/src/base/gun.c b/src/base/gun.c index f905efd..aeb2478 100644 --- a/src/base/gun.c +++ b/src/base/gun.c @@ -85,31 +85,13 @@ static void addShotTrivial(tux_t *tux, int x, int y, int px, int py, int gun) shot = newShot(tux->x + dest_x, tux->y + dest_y, dest_px, dest_py, gun, tux->id); -/* - if( isFreeSpace( getCurrentArena(), shot->x, shot->y, shot->w, shot->h ) == 0 ) + if(1)// isFreeSpace(getCurrentArena(), shot->x, shot->y, shot->w, shot->h) ) { - destroyShot(shot); + addObjectToSpace(getCurrentArena()->spaceShot, shot); return; } -*/ - //addList( getCurrentArena()->listShot, shot ); - addObjectToSpace(getCurrentArena()->spaceShot, shot); -/* - if( getNetTypeGame() == NET_GAME_TYPE_SERVER ) - { - client_t *thisClient; - - thisClient = getClientFromTux(tux); - - if( thisClient != NULL ) - { - proto_send_shot_server(PROTO_SEND_ONE, thisClient, shot); - } - - proto_send_shot_server(PROTO_SEND_ALL_SEES_TUX, thisClient, shot); - } -*/ + destroyShot(shot); } static void addShot(tux_t *tux,int x, int y, int px, int py) @@ -232,7 +214,10 @@ static void timer_addLaserTimer(void *p) gun = tux->gun; tux->gun = GUN_LASSER; + addShot(tux, 0, 0, +10, 0); + addShot(tux, +40, 0, +10, 0); + //addShot(tux, +40, 0, +10, 0); tux->gun = gun; } |