Mercurial > hg > early-roguelike
comparison srogue/trader.c @ 304:e52a8a7ad4c5
Fix many compiler warnings.
There should only be two changes in behavior:
arogue7/fight.c, arogue7/fight.c: a to-hit bonus is now correctly
applied to characters who are not monks instead of monks who are not
empty-handed.
urogue/fight.c: fixed an interaction with the "debug" macro that could
cause the wrong message to be displayed.
author | John "Elwin" Edwards |
---|---|
date | Wed, 14 Apr 2021 18:55:33 -0400 |
parents | 0250220d8cdd |
children |
comparison
equal
deleted
inserted
replaced
303:e06ebc407615 | 304:e52a8a7ad4c5 |
---|---|
297 * Draw the maze on this level. | 297 * Draw the maze on this level. |
298 */ | 298 */ |
299 void | 299 void |
300 do_maze(void) | 300 do_maze(void) |
301 { | 301 { |
302 struct coord tp; | |
303 reg int i, least; | 302 reg int i, least; |
304 reg struct room *rp; | 303 reg struct room *rp; |
305 bool treas; | 304 bool treas; |
306 | 305 |
307 for (rp = rooms; rp < &rooms[MAXROOMS]; rp++) { | 306 for (rp = rooms; rp < &rooms[MAXROOMS]; rp++) { |
483 * Does actual drawing of maze to window | 482 * Does actual drawing of maze to window |
484 */ | 483 */ |
485 void | 484 void |
486 crankout(void) | 485 crankout(void) |
487 { | 486 { |
488 reg int x, y, i; | 487 reg int x, y; |
489 | 488 |
490 for (y = 0; y < LINES - 3; y++) { | 489 for (y = 0; y < LINES - 3; y++) { |
491 move(y + 1, 0); | 490 move(y + 1, 0); |
492 for (x = 0; x < COLS - 1; x++) { | 491 for (x = 0; x < COLS - 1; x++) { |
493 if (*moffset(y, x)) { /* here is a wall */ | 492 if (*moffset(y, x)) { /* here is a wall */ |