comparison rogue3/passages.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 d9e44e18eeec
children
comparison
equal deleted inserted replaced
303:e06ebc407615 304:e52a8a7ad4c5
204 turn_delta.x = 0; 204 turn_delta.x = 0;
205 turn_distance = abs(spos.y - epos.y); 205 turn_distance = abs(spos.y - epos.y);
206 turn_spot = rnd(distance-1) + 1; 206 turn_spot = rnd(distance-1) + 1;
207 } 207 }
208 else 208 else
209 {
209 fatal("error in connection tables"); 210 fatal("error in connection tables");
211 return;
212 }
210 /* 213 /*
211 * Draw in the doors on either side of the passage or just put #'s 214 * Draw in the doors on either side of the passage or just put #'s
212 * if the rooms are gone. 215 * if the rooms are gone.
213 */ 216 */
214 if (!(rpf->r_flags & ISGONE)) door(rpf, &spos); 217 if (!(rpf->r_flags & ISGONE)) door(rpf, &spos);