projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
7eec2d7
)
rnd-19990219-1
author
Holger Schemel
<info@artsoft.org>
Fri, 19 Feb 1999 01:01:24 +0000
(
02:01
+0100)
committer
Holger Schemel
<info@artsoft.org>
Sat, 30 Aug 2014 08:33:45 +0000
(10:33 +0200)
src/game.c
patch
|
blob
|
history
diff --git
a/src/game.c
b/src/game.c
index f66cd400858a100f9add6ab75b57fc9814883155..253827d31d7de1b3c315585d006cc1f198588ed1 100644
(file)
--- a/
src/game.c
+++ b/
src/game.c
@@
-199,6
+199,7
@@
static void InitField(int x, int y, boolean init_game)
if (!options.network || player->connected)
{
player->active = TRUE;
if (!options.network || player->connected)
{
player->active = TRUE;
+ player->gone = FALSE;
/* remove potentially duplicate players */
if (StorePlayer[jx][jy] == Feld[x][y])
/* remove potentially duplicate players */
if (StorePlayer[jx][jy] == Feld[x][y])
@@
-384,7
+385,7
@@
void InitGame()
player->snapped = FALSE;
player->snapped = FALSE;
- player->gone =
FALS
E;
+ player->gone =
TRU
E;
player->last_jx = player->last_jy = 0;
player->jx = player->jy = 0;
player->last_jx = player->last_jy = 0;
player->jx = player->jy = 0;
@@
-471,6
+472,7
@@
void InitGame()
{
player->present = TRUE;
player->active = TRUE;
{
player->present = TRUE;
player->active = TRUE;
+ player->gone = FALSE;
some_player->present = FALSE;
StorePlayer[jx][jy] = player->element_nr;
some_player->present = FALSE;
StorePlayer[jx][jy] = player->element_nr;
@@
-495,6
+497,7
@@
void InitGame()
int jx = player->jx, jy = player->jy;
player->active = FALSE;
int jx = player->jx, jy = player->jy;
player->active = FALSE;
+ player->gone = TRUE;
StorePlayer[jx][jy] = 0;
Feld[jx][jy] = EL_LEERRAUM;
}
StorePlayer[jx][jy] = 0;
Feld[jx][jy] = EL_LEERRAUM;
}
@@
-516,6
+519,7
@@
void InitGame()
int jx = player->jx, jy = player->jy;
player->active = FALSE;
int jx = player->jx, jy = player->jy;
player->active = FALSE;
+ player->gone = TRUE;
StorePlayer[jx][jy] = 0;
Feld[jx][jy] = EL_LEERRAUM;
}
StorePlayer[jx][jy] = 0;
Feld[jx][jy] = EL_LEERRAUM;
}