Mercurial > hg > early-roguelike
comparison rogue4/wizard.c @ 225:4f6e056438eb
Merge the GCC5 and build fix branches.
author | John "Elwin" Edwards |
---|---|
date | Wed, 02 Mar 2016 21:28:34 -0500 |
parents | 1b73a8641b37 |
children | e7aab31362af |
comparison
equal
deleted
inserted
replaced
224:4d0f53998e8a | 225:4f6e056438eb |
---|---|
14 | 14 |
15 /* | 15 /* |
16 * whatis: | 16 * whatis: |
17 * What a certin object is | 17 * What a certin object is |
18 */ | 18 */ |
19 whatis(insist) | 19 void |
20 bool insist; | 20 whatis(bool insist) |
21 { | 21 { |
22 register THING *obj; | 22 register THING *obj; |
23 | 23 |
24 if (pack == NULL) | 24 if (pack == NULL) |
25 { | 25 { |
78 #ifdef WIZARD | 78 #ifdef WIZARD |
79 /* | 79 /* |
80 * create_obj: | 80 * create_obj: |
81 * Wizard command for getting anything he wants | 81 * Wizard command for getting anything he wants |
82 */ | 82 */ |
83 create_obj() | 83 void |
84 create_obj(void) | |
84 { | 85 { |
85 register THING *obj; | 86 register THING *obj; |
86 register char ch, bless; | 87 register char ch, bless; |
87 | 88 |
88 obj = new_item(); | 89 obj = new_item(); |
148 | 149 |
149 /* | 150 /* |
150 * telport: | 151 * telport: |
151 * Bamf the hero someplace else | 152 * Bamf the hero someplace else |
152 */ | 153 */ |
153 teleport() | 154 int |
155 teleport(void) | |
154 { | 156 { |
155 register int rm; | 157 register int rm; |
156 coord c; | 158 coord c; |
157 | 159 |
158 mvaddch(hero.y, hero.x, chat(hero.y, hero.x)); | 160 mvaddch(hero.y, hero.x, chat(hero.y, hero.x)); |
192 #ifdef WIZARD | 194 #ifdef WIZARD |
193 /* | 195 /* |
194 * passwd: | 196 * passwd: |
195 * See if user knows password | 197 * See if user knows password |
196 */ | 198 */ |
197 passwd() | 199 bool |
200 passwd(void) | |
198 { | 201 { |
199 register char *sp, c; | 202 register char *sp, c; |
200 char buf[MAXSTR], *xcrypt(); | 203 char buf[MAXSTR], *xcrypt(); |
201 | 204 |
202 msg("wizard's Password:"); | 205 msg("wizard's Password:"); |
217 | 220 |
218 /* | 221 /* |
219 * show_map: | 222 * show_map: |
220 * Print out the map for the wizard | 223 * Print out the map for the wizard |
221 */ | 224 */ |
222 show_map() | 225 void |
226 show_map(void) | |
223 { | 227 { |
224 register int y, x, real; | 228 register int y, x, real; |
225 | 229 |
226 wclear(hw); | 230 wclear(hw); |
227 for (y = 1; y < LINES - 1; y++) | 231 for (y = 1; y < LINES - 1; y++) |