diff options
Diffstat (limited to 'play.c')
-rw-r--r-- | play.c | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -410,23 +410,19 @@ static void push_rock(int x, int y) static void move_player_to(int x, int y) { int x1 = gp.x, y1 = gp.y; - int s, m, f; /* Why these names? */ - int su, mu, fu; /* Same thing for the space above */ + int s, m; /* Symbol, foreground */ + int su; /* Symbol above */ int hpp = 0; char sbuf[2]; s = screen(x,y); m = fg(x,y); - f = bg(x,y); sbuf[0] = s; sbuf[1] = '\0'; - if ( x > 2 ) { + if ( x > 2 ) su = screen(x-1,y); - mu = fg(x-1,y); - fu = bg(x-1,y); - } else { - su = ' '; mu = 0; fu = gp.c; - } + else + su = ' '; if ( strchr(DOORS "\xfe\xb1\xe5\x0f", s) || (s == SYM_CHERRY && m == 15) ) { |