Mercurial > hg > early-roguelike
comparison arogue7/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 | f9ef86cf22b2 |
children | 32bc72dcbf4f |
comparison
equal
deleted
inserted
replaced
303:e06ebc407615 | 304:e52a8a7ad4c5 |
---|---|
1030 */ | 1030 */ |
1031 | 1031 |
1032 void | 1032 void |
1033 shell(void) | 1033 shell(void) |
1034 { | 1034 { |
1035 register char *sh; | |
1036 | |
1037 /* | 1035 /* |
1038 * Set the terminal back to original mode | 1036 * Set the terminal back to original mode |
1039 */ | 1037 */ |
1040 sh = getenv("SHELL"); | |
1041 wclear(hw); | 1038 wclear(hw); |
1042 wmove(hw, lines-1, 0); | 1039 wmove(hw, lines-1, 0); |
1043 draw(hw); | 1040 draw(hw); |
1044 endwin(); | 1041 endwin(); |
1045 in_shell = TRUE; | 1042 in_shell = TRUE; |
1136 msg("You can't call that anything."); | 1133 msg("You can't call that anything."); |
1137 return; | 1134 return; |
1138 } | 1135 } |
1139 else know = (bool *) 0; | 1136 else know = (bool *) 0; |
1140 } | 1137 } |
1141 if ((obj->o_flags & ISPOST) || (know && know[obj->o_which]) && !mark) { | 1138 if ((obj->o_flags & ISPOST) || (know && know[obj->o_which] && !mark)) { |
1142 msg("That has already been identified."); | 1139 msg("That has already been identified."); |
1143 return; | 1140 return; |
1144 } | 1141 } |
1145 if (mark) { | 1142 if (mark) { |
1146 if (obj->o_mark[0]) { | 1143 if (obj->o_mark[0]) { |