From 7386e93e32575bae21006d0300cbff4cf7a40926 Mon Sep 17 00:00:00 2001 From: oroborus Date: Tue, 8 Jul 2008 16:35:02 +0000 Subject: - 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 --- src/base/gun.c | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) (limited to 'src/base/gun.c') 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; } -- cgit v1.2.3