aboutsummaryrefslogtreecommitdiffstats
path: root/play.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2012-02-26 21:42:05 -0800
committerH. Peter Anvin <hpa@zytor.com>2012-02-26 21:42:05 -0800
commit6d349aebe9db752359f485ba07edeec937491c18 (patch)
treea8f02c95e2261b173352f2f33ac47af31ec0e935 /play.c
parent72e0efb120e2da54e739ec7701bc8a37cb406401 (diff)
downloadgrv-6d349aebe9db752359f485ba07edeec937491c18.tar.gz
grv-6d349aebe9db752359f485ba07edeec937491c18.tar.xz
grv-6d349aebe9db752359f485ba07edeec937491c18.zip
Minor code cleanups; no functional change
Diffstat (limited to 'play.c')
-rw-r--r--play.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/play.c b/play.c
index b402ef8..2daa9ba 100644
--- a/play.c
+++ b/play.c
@@ -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) ) {