comparison rogue3/options.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 e676d52b5d09
children
comparison
equal deleted inserted replaced
303:e06ebc407615 304:e52a8a7ad4c5
242 sp = buf; 242 sp = buf;
243 wmove(win, oy, ox); 243 wmove(win, oy, ox);
244 continue; 244 continue;
245 } 245 }
246 else if (sp == buf) 246 else if (sp == buf)
247 {
247 if (c == '-') 248 if (c == '-')
248 break; 249 break;
249 else if (c == '~') 250 else if (c == '~')
250 { 251 {
251 strcpy(buf, home); 252 strcpy(buf, home);
252 waddstr(win, home); 253 waddstr(win, home);
253 sp += strlen(home); 254 sp += strlen(home);
254 continue; 255 continue;
255 } 256 }
257 }
256 258
257 if ((sp - buf) < 78) /* Avoid overflow */ 259 if ((sp - buf) < 78) /* Avoid overflow */
258 { 260 {
259 *sp++ = c; 261 *sp++ = c;
260 waddstr(win, unctrl(c)); 262 waddstr(win, unctrl(c));