Mercurial > hg > early-roguelike
comparison srogue/new_leve.c @ 217:94a0d9dd5ce1
Super-Rogue: convert to ANSI-style function declarations.
This fixes most of the build warnings.
author | John "Elwin" Edwards |
---|---|
date | Sun, 31 Jan 2016 13:45:07 -0500 |
parents | 2128c7dc8a40 |
children | e52a8a7ad4c5 |
comparison
equal
deleted
inserted
replaced
216:b24545357d2e | 217:94a0d9dd5ce1 |
---|---|
15 */ | 15 */ |
16 | 16 |
17 #include "rogue.h" | 17 #include "rogue.h" |
18 #include "rogue.ext" | 18 #include "rogue.ext" |
19 | 19 |
20 void put_things(void); | |
21 | |
20 /* | 22 /* |
21 * new_level: | 23 * new_level: |
22 * Dig and draw a new level | 24 * Dig and draw a new level |
23 */ | 25 */ |
24 new_level(ltype) | 26 void |
25 int ltype; | 27 new_level(int ltype) |
26 { | 28 { |
27 register i; | 29 register int i; |
28 register char ch; | 30 register char ch; |
29 struct coord traploc; | 31 struct coord traploc; |
30 struct room *rp; | 32 struct room *rp; |
31 | 33 |
32 if (level > max_level) | 34 if (level > max_level) |
143 | 145 |
144 /* | 146 /* |
145 * rnd_room: | 147 * rnd_room: |
146 * Pick a room that is really there | 148 * Pick a room that is really there |
147 */ | 149 */ |
148 rnd_room() | 150 int |
151 rnd_room(void) | |
149 { | 152 { |
150 register rm; | 153 register int rm; |
151 | 154 |
152 if (levtype != NORMLEV) | 155 if (levtype != NORMLEV) |
153 rm = 0; | 156 rm = 0; |
154 else | 157 else |
155 { | 158 { |
164 /* | 167 /* |
165 * put_things: | 168 * put_things: |
166 * put potions and scrolls on this level | 169 * put potions and scrolls on this level |
167 */ | 170 */ |
168 | 171 |
169 put_things() | 172 void |
173 put_things(void) | |
170 { | 174 { |
171 register i, cnt, rm; | 175 register int i, cnt, rm; |
172 struct linked_list *item; | 176 struct linked_list *item; |
173 struct object *cur; | 177 struct object *cur; |
174 struct coord tp; | 178 struct coord tp; |
175 | 179 |
176 /* Throw away stuff left on the previous level (if anything) */ | 180 /* Throw away stuff left on the previous level (if anything) */ |