struct rogue_state *rs

This commit is contained in:
jl777
2019-02-18 01:04:51 -11:00
parent 040d3f8bfe
commit e4c1ce6396
2 changed files with 3 additions and 3 deletions

View File

@@ -165,7 +165,7 @@ out:
bool bool
pack_room(struct rogue_state *rs,bool from_floor, THING *obj) pack_room(struct rogue_state *rs,bool from_floor, THING *obj)
{ {
inpack = num_packitems(); inpack = num_packitems(rs);
if (++inpack > MAXPACK) if (++inpack > MAXPACK)
{ {
if (!terse) if (!terse)
@@ -247,7 +247,7 @@ pack_char()
* the given type. * the given type.
*/ */
int32_t num_packitems() int32_t num_packitems(struct rogue_state *rs)
{ {
THING *list = pack; THING *list = pack;
int32_t type = 0,n = 0,total = 0; int32_t type = 0,n = 0,total = 0;

View File

@@ -802,7 +802,7 @@ THING *leave_pack(struct rogue_state *rs,THING *obj, bool newobj, bool all);
THING *new_item(void); THING *new_item(void);
THING *new_thing(struct rogue_state *rs); THING *new_thing(struct rogue_state *rs);
void end_line(struct rogue_state *rs); void end_line(struct rogue_state *rs);
int32_t num_packitems(); int32_t num_packitems(struct rogue_state *rs);
void runners(struct rogue_state *rs,int); void runners(struct rogue_state *rs,int);
void land(struct rogue_state *rs,int); void land(struct rogue_state *rs,int);