XRogue: convert to ANSI-style function declarations.
This commit is contained in:
parent
e8e6e604c3
commit
2853120387
41 changed files with 1281 additions and 908 deletions
|
|
@ -20,13 +20,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 = 0, i, cnt;
|
||||
register unsigned char ch;
|
||||
|
|
@ -464,14 +467,15 @@ LEVTYPE ltype; /* designates type of level to create */
|
|||
|
||||
/* Do we sense any food on this level? */
|
||||
if (cur_relic[SURTUR_RING])
|
||||
quaff(P_FFIND, NULL, NULL, FALSE);
|
||||
quaff(P_FFIND, 0, 0, FALSE);
|
||||
}
|
||||
|
||||
/*
|
||||
* Pick a room that is really there
|
||||
*/
|
||||
|
||||
rnd_room()
|
||||
int
|
||||
rnd_room(void)
|
||||
{
|
||||
register int rm;
|
||||
|
||||
|
|
@ -487,10 +491,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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue