mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2025-04-07 23:37:22 +00:00
coleco: fixed siegegame
This commit is contained in:
parent
cc0cb584a8
commit
91e9ba1e93
@ -92,7 +92,7 @@ void move_player(Player* p) {
|
||||
putcharxy(p->x, p->y, p->tail_attr);
|
||||
p->x += DIR_X[p->dir];
|
||||
p->y += DIR_Y[p->dir];
|
||||
if (getcharxy(p->x, p->y) != CHAR(' '))
|
||||
if (getcharxy(p->x, p->y) != 0)
|
||||
p->collided = 1;
|
||||
draw_player(p);
|
||||
}
|
||||
@ -117,7 +117,7 @@ byte ai_try_dir(Player* p, dir_t dir, byte shift) {
|
||||
dir &= 3;
|
||||
x = p->x + (DIR_X[dir] << shift);
|
||||
y = p->y + (DIR_Y[dir] << shift);
|
||||
if (x < 29 && y < 27 && getcharxy(x, y) == CHAR(' ')) {
|
||||
if (x < 29 && y < 27 && getcharxy(x, y) == 0) {
|
||||
p->dir = dir;
|
||||
return 1;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user