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
|
|
@ -15,14 +15,15 @@
|
|||
#include <curses.h>
|
||||
#include "rogue.h"
|
||||
|
||||
int packweight(struct thing *tp);
|
||||
|
||||
/*
|
||||
* updpack:
|
||||
* Update his pack weight and adjust fooduse accordingly
|
||||
*/
|
||||
|
||||
updpack(getmax, tp)
|
||||
int getmax;
|
||||
struct thing *tp;
|
||||
void
|
||||
updpack(int getmax, struct thing *tp)
|
||||
{
|
||||
|
||||
reg int topcarry, curcarry;
|
||||
|
|
@ -52,8 +53,8 @@ struct thing *tp;
|
|||
* Get the total weight of the hero's pack
|
||||
*/
|
||||
|
||||
packweight(tp)
|
||||
register struct thing *tp;
|
||||
int
|
||||
packweight(struct thing *tp)
|
||||
{
|
||||
reg struct object *obj;
|
||||
reg struct linked_list *pc;
|
||||
|
|
@ -89,8 +90,8 @@ register struct thing *tp;
|
|||
* Get the weight of an object
|
||||
*/
|
||||
|
||||
itemweight(wh)
|
||||
reg struct object *wh;
|
||||
int
|
||||
itemweight(struct object *wh)
|
||||
{
|
||||
reg int weight;
|
||||
reg int ac;
|
||||
|
|
@ -120,8 +121,8 @@ reg struct object *wh;
|
|||
* Get hero's carrying ability above norm
|
||||
*/
|
||||
|
||||
playenc(tp)
|
||||
register struct thing *tp;
|
||||
int
|
||||
playenc(struct thing *tp)
|
||||
{
|
||||
register int strength;
|
||||
|
||||
|
|
@ -136,8 +137,8 @@ register struct thing *tp;
|
|||
* Get total weight that the hero can carry
|
||||
*/
|
||||
|
||||
totalenc(tp)
|
||||
register struct thing *tp;
|
||||
int
|
||||
totalenc(struct thing *tp)
|
||||
{
|
||||
reg int wtotal;
|
||||
|
||||
|
|
@ -157,11 +158,11 @@ register struct thing *tp;
|
|||
* See if the hero can carry his pack
|
||||
*/
|
||||
|
||||
wghtchk()
|
||||
void
|
||||
wghtchk(void)
|
||||
{
|
||||
reg int dropchk, err = TRUE;
|
||||
reg char ch;
|
||||
int wghtchk();
|
||||
|
||||
inwhgt = TRUE;
|
||||
if (pstats.s_pack > pstats.s_carry) {
|
||||
|
|
@ -195,7 +196,8 @@ wghtchk()
|
|||
* -1 hit for heavy pack weight
|
||||
*/
|
||||
|
||||
hitweight()
|
||||
int
|
||||
hitweight(void)
|
||||
{
|
||||
return(2 - foodlev);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue