From b84b59153c587248ca8a6a94a6d93977e851233f Mon Sep 17 00:00:00 2001 From: oroborus Date: Sat, 15 Mar 2008 18:35:48 +0000 Subject: - moznost skompilovat public server bez GUI ( pomocou Makefile-publicServer ) port sa nastavuje ako ./publicserver --port - jeto iba prvotna verzia treba to este odladit a zostabilnit git-svn-id: http://opensvn.csie.org/tuxanci_ng@18 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/gun.c | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'src/gun.c') diff --git a/src/gun.c b/src/gun.c index 1fd1bf1..08c3285 100644 --- a/src/gun.c +++ b/src/gun.c @@ -10,10 +10,17 @@ #include "myTimer.h" #include "main.h" #include "item.h" +#include "gun.h" + +#ifndef BUBLIC_SERVER #include "sound.h" #include "screen_world.h" #include "interface.h" -#include "gun.h" +#endif + +#ifdef BUBLIC_SERVER +#include "publicServer.h" +#endif static void modificiationCopuse(int courser, int right_x, int right_y, int *dest_x, int *dest_y) { @@ -238,27 +245,39 @@ void shotInGun(tux_t *tux) switch( tux->gun ) { case GUN_SIMPLE : +#ifndef BUBLIC_SERVER playSound("gun_revolver", SOUND_GROUP_BASE); +#endif shotInGunSimpe(tux); break; case GUN_DUAL_SIMPLE : +#ifndef BUBLIC_SERVER playSound("gun_revolver", SOUND_GROUP_BASE); +#endif shotInGunDualSimpe(tux); break; case GUN_SCATTER : - playSound("gun_scatter", SOUND_GROUP_BASE); +#ifndef BUBLIC_SERVER + playSound("gun_scatter", SOUND_GROUP_BASE); +#endif shotInGunScatter(tux); break; case GUN_TOMMY : +#ifndef BUBLIC_SERVER playSound("gun_tommy", SOUND_GROUP_BASE); +#endif shotInGunTommy(tux); break; case GUN_LASSER : +#ifndef BUBLIC_SERVER playSound("gun_lasser", SOUND_GROUP_BASE); +#endif shotInGunLasser(tux); break; case GUN_MINE : +#ifndef BUBLIC_SERVER playSound("put_mine", SOUND_GROUP_BASE); +#endif putInGunMine(tux); break; } -- cgit v1.2.3