Advanced Rogue 7: convert to ANSI-style function declarations.
Almost 1500 lines of compiler warnings remain, and the GCC developers are already working on a new version with even more warnings turned on by default.
This commit is contained in:
parent
f38b2223c8
commit
e8e6e604c3
39 changed files with 1181 additions and 889 deletions
|
|
@ -16,14 +16,16 @@
|
|||
#include "rogue.h"
|
||||
#define TERRASAVE 3
|
||||
|
||||
void put_things(LEVTYPE ltype);
|
||||
|
||||
/*
|
||||
* new_level:
|
||||
* Dig and draw a new level
|
||||
*
|
||||
* ltype: designates type of level to create
|
||||
*/
|
||||
|
||||
new_level(ltype)
|
||||
LEVTYPE ltype; /* designates type of level to create */
|
||||
void
|
||||
new_level(LEVTYPE ltype)
|
||||
{
|
||||
register int rm, i, cnt;
|
||||
register char ch;
|
||||
|
|
@ -434,14 +436,15 @@ LEVTYPE ltype; /* designates type of level to create */
|
|||
status(TRUE);
|
||||
|
||||
/* Do we sense any food on this level? */
|
||||
if (cur_relic[SURTUR_RING]) quaff(P_FFIND, NULL, NULL, FALSE);
|
||||
if (cur_relic[SURTUR_RING]) quaff(P_FFIND, 0, 0, FALSE);
|
||||
}
|
||||
|
||||
/*
|
||||
* Pick a room that is really there
|
||||
*/
|
||||
|
||||
rnd_room()
|
||||
int
|
||||
rnd_room(void)
|
||||
{
|
||||
register int rm;
|
||||
|
||||
|
|
@ -457,10 +460,11 @@ rnd_room()
|
|||
/*
|
||||
* put_things:
|
||||
* put potions and scrolls on this level
|
||||
* ltype: designates type of level to create
|
||||
*/
|
||||
|
||||
put_things(ltype)
|
||||
LEVTYPE ltype; /* designates type of level to create */
|
||||
void
|
||||
put_things(LEVTYPE ltype)
|
||||
{
|
||||
register int i, rm, cnt;
|
||||
register struct object *cur;
|
||||
|
|
@ -478,7 +482,7 @@ LEVTYPE ltype; /* designates type of level to create */
|
|||
* There is a chance that there is a treasure room on this level
|
||||
*/
|
||||
if (ltype != MAZELEV && rnd(HARDER) < level - 10) {
|
||||
register j;
|
||||
int j;
|
||||
register struct room *rp;
|
||||
|
||||
/* Count the number of free spaces */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue