Mercurial > hg > early-roguelike
comparison urogue/potions.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 |
|---|---|
| 359 if (is_magic(tp)) | 359 if (is_magic(tp)) |
| 360 { | 360 { |
| 361 char mag_type = MAGIC; | 361 char mag_type = MAGIC; |
| 362 | 362 |
| 363 if (blessed) | 363 if (blessed) |
| 364 { | |
| 364 if (tp->o_flags & ISCURSED) | 365 if (tp->o_flags & ISCURSED) |
| 365 mag_type = CMAGIC; | 366 mag_type = CMAGIC; |
| 366 else if (tp->o_flags & ISBLESSED) | 367 else if (tp->o_flags & ISBLESSED) |
| 367 mag_type = BMAGIC; | 368 mag_type = BMAGIC; |
| 369 } | |
| 368 | 370 |
| 369 showit = TRUE; | 371 showit = TRUE; |
| 370 mvwaddch(hw, tp->o_pos.y, tp->o_pos.x, mag_type); | 372 mvwaddch(hw, tp->o_pos.y, tp->o_pos.x, mag_type); |
| 371 } | 373 } |
| 372 } | 374 } |
