diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-03-15 18:35:48 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-03-15 18:35:48 +0000 |
| commit | b84b59153c587248ca8a6a94a6d93977e851233f (patch) | |
| tree | e13b33f09ee6ac130bb6045626618b1c5fc4d787 /src/gun.c | |
| parent | 6038f9434f1eb40caf7992ece9a3972e95a9fc11 (diff) | |
- moznost skompilovat public server bez GUI ( pomocou Makefile-publicServer )
port sa nastavuje ako ./publicserver --port <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
Diffstat (limited to 'src/gun.c')
| -rw-r--r-- | src/gun.c | 23 |
1 files changed, 21 insertions, 2 deletions
@@ -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; } |