comparison xrogue/n_level.c @ 220:f54901b9c39b

XRogue: convert to ANSI-style function declarations.
author John "Elwin" Edwards
date Wed, 02 Mar 2016 21:13:26 -0500
parents e6179860cb76
children e52a8a7ad4c5
comparison
equal deleted inserted replaced
219:f9ef86cf22b2 220:f54901b9c39b
18 18
19 #include <curses.h> 19 #include <curses.h>
20 #include "rogue.h" 20 #include "rogue.h"
21 #define TERRASAVE 3 21 #define TERRASAVE 3
22 22
23 void put_things(LEVTYPE ltype);
24
23 /* 25 /*
24 * new_level: 26 * new_level:
25 * Dig and draw a new level 27 * Dig and draw a new level
28 * ltype: designates type of level to create
26 */ 29 */
27 30
28 new_level(ltype) 31 void
29 LEVTYPE ltype; /* designates type of level to create */ 32 new_level(LEVTYPE ltype)
30 { 33 {
31 register int rm = 0, i, cnt; 34 register int rm = 0, i, cnt;
32 register unsigned char ch; 35 register unsigned char ch;
33 register struct linked_list *item; 36 register struct linked_list *item;
34 register struct thing *tp; 37 register struct thing *tp;
462 465
463 status(TRUE); 466 status(TRUE);
464 467
465 /* Do we sense any food on this level? */ 468 /* Do we sense any food on this level? */
466 if (cur_relic[SURTUR_RING]) 469 if (cur_relic[SURTUR_RING])
467 quaff(P_FFIND, NULL, NULL, FALSE); 470 quaff(P_FFIND, 0, 0, FALSE);
468 } 471 }
469 472
470 /* 473 /*
471 * Pick a room that is really there 474 * Pick a room that is really there
472 */ 475 */
473 476
474 rnd_room() 477 int
478 rnd_room(void)
475 { 479 {
476 register int rm; 480 register int rm;
477 481
478 if (levtype != NORMLEV) 482 if (levtype != NORMLEV)
479 rm = 0; 483 rm = 0;
485 } 489 }
486 490
487 /* 491 /*
488 * put_things: 492 * put_things:
489 * put potions and scrolls on this level 493 * put potions and scrolls on this level
494 * ltype: designates type of level to create
490 */ 495 */
491 496
492 put_things(ltype) 497 void
493 LEVTYPE ltype; /* designates type of level to create */ 498 put_things(LEVTYPE ltype)
494 { 499 {
495 register int i, rm, cnt; 500 register int i, rm, cnt;
496 register struct object *cur; 501 register struct object *cur;
497 register struct linked_list *item, *nextitem, *exitptr; 502 register struct linked_list *item, *nextitem, *exitptr;
498 int length, width; 503 int length, width;