summaryrefslogtreecommitdiff
path: root/src/modules/modPipe.c
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-07-08 21:17:12 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-07-08 21:17:12 +0000
commit0eda3185ba30d433029c9a7e725529a801c93d80 (patch)
tree3eeed16eb926fc3529f051704fd53070670e7124 /src/modules/modPipe.c
parent7386e93e32575bae21006d0300cbff4cf7a40926 (diff)
- do widgetu textfiled sa zmesti IP adresa ( zatial aspon IPv4 )
- v arene je vzdy kostantny pocet zbarni/bonsov ( implicitny je 10, nastavuje sa v configu pomocou ITEM ) - oprava chyby, tux s binusom hidden sa moze teleportovat - oprava chyb v moduloch pipe teleport a wall git-svn-id: http://opensvn.csie.org/tuxanci_ng@125 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/modules/modPipe.c')
-rwxr-xr-xsrc/modules/modPipe.c32
1 files changed, 5 insertions, 27 deletions
diff --git a/src/modules/modPipe.c b/src/modules/modPipe.c
index b535404..efe4230 100755
--- a/src/modules/modPipe.c
+++ b/src/modules/modPipe.c
@@ -258,8 +258,8 @@ static void moveShot(shot_t *shot, int position, int src_x, int src_y,
break;
}
- new_y += shot->px;
- new_y += shot->py;
+ new_x += myAbs(shot->px) * shot->px;
+ new_y += myAbs(shot->py) * shot->py;
moveObjectInSpace(export_fce->fce_getCurrentArena()->spaceShot, shot, new_x, new_y);
@@ -356,12 +356,6 @@ int event()
return 0;
}
-/*
- if( export_fce->fce_getNetTypeGame() == NET_GAME_TYPE_CLIENT )
- {
- return;
- }
-*/
arena = export_fce->fce_getCurrentArena();
for( i = 0 ; i < arena->spaceShot->list->count ; i++ )
@@ -390,25 +384,10 @@ int event()
continue;
}
- if( negPosition( thisShot->position ) == thisPipe->position )
+ if( negPosition( thisShot->position ) == thisPipe->position &&
+ export_fce->fce_getNetTypeGame() != NET_GAME_TYPE_CLIENT )
{
- //moveShotFromPipe(thisShot, thisPipe, listPipe);
-
- if( export_fce->fce_getNetTypeGame() == NET_GAME_TYPE_CLIENT )
- {
- if( thisShot->gun != GUN_BOMBBALL )
- {
- delObjectFromSpaceWithObject(export_fce->fce_getCurrentArena()->spaceShot,
- thisShot, export_fce->fce_destroyShot);
- //delListItem(arena->listShot, i, export_fce->fce_destroyShot);
- i--;
- }
- }
- else
- {
- moveShotFromPipe(thisShot, thisPipe);
- }
-
+ moveShotFromPipe(thisShot, thisPipe);
}
else
{
@@ -416,7 +395,6 @@ int event()
export_fce->fce_getNetTypeGame() != NET_GAME_TYPE_CLIENT )
{
export_fce->fce_boundBombBall(thisShot);
- continue;
}
else
{