Fixed bug with spider hitting bottom of screen.
This commit is contained in:
parent
53fe1cbc2e
commit
da545ce57e
2
rc.c
2
rc.c
|
@ -2578,7 +2578,7 @@ if (s->id == P_PUFF) printf("PUFF WITH DOOMCOUNT!\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if on ground, go up */
|
/* if on ground, go up */
|
||||||
if ((isonground(s) && !s->flies) || (s->y >= (480-TILEH))) {
|
if (!s->flies && (isonground(s) || (s->y >= (480-TILEH) ) )) {
|
||||||
s->flies = B_TRUE;
|
s->flies = B_TRUE;
|
||||||
s->falling = B_FALSE;
|
s->falling = B_FALSE;
|
||||||
s->ys = -getspeed(s);
|
s->ys = -getspeed(s);
|
||||||
|
|
Loading…
Reference in New Issue