Mercurial > hg > early-roguelike
comparison srogue/command.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 | 94a0d9dd5ce1 |
| children | c03d0b87211c |
comparison
equal
deleted
inserted
replaced
| 303:e06ebc407615 | 304:e52a8a7ad4c5 |
|---|---|
| 636 * Let him escape for a while | 636 * Let him escape for a while |
| 637 */ | 637 */ |
| 638 void | 638 void |
| 639 shell(void) | 639 shell(void) |
| 640 { | 640 { |
| 641 reg int pid; | |
| 642 reg char *sh; | |
| 643 int ret_status; | |
| 644 | 641 |
| 645 /* | 642 /* |
| 646 * Set the terminal back to original mode | 643 * Set the terminal back to original mode |
| 647 */ | 644 */ |
| 648 sh = getenv("SHELL"); | |
| 649 wclear(hw); | 645 wclear(hw); |
| 650 wmove(hw, LINES-1, 0); | 646 wmove(hw, LINES-1, 0); |
| 651 draw(hw); | 647 draw(hw); |
| 652 endwin(); | 648 endwin(); |
| 653 in_shell = TRUE; | 649 in_shell = TRUE; |
