Browse Source

-sleep

metaverse
jl777 5 years ago
parent
commit
0ee026a047
  1. 5
      src/cc/rogue/pack.c
  2. 6
      src/cc/rogue/state.c

5
src/cc/rogue/pack.c

@ -280,6 +280,11 @@ inventory(struct rogue_state *rs,THING *list, int type)
list->o_type != FOOD && list->o_type != AMULET) &&
!(type == R_OR_S && (list->o_type == RING || list->o_type == STICK)))
continue;
if ( thing_find(list) < 0 )
{
fprintf(stderr,"cant find thing.(%c) in pack\n",list->o_packch);
sleep(3);
}
n_objs++;
#ifdef MASTER
if (!list->o_packch)

6
src/cc/rogue/state.c

@ -1431,7 +1431,7 @@ rs_write_object(struct rogue_state *rs,FILE *savef, THING *o)
return(WRITESTAT);
if ( thing_find(o) < 0 )
{
fprintf(stderr,"cant find thing.%p (%s) in list\n",o,inv_name(o,FALSE)); sleep(3);
fprintf(stderr,"cant find thing.%p (%s) in list\n",o,inv_name(o,FALSE)); //sleep(3);
return(0);
}
if ( o->_o._o_packch != 0 )
@ -1734,7 +1734,6 @@ rs_write_thing(struct rogue_state *rs,FILE *savef, THING *t)
rs_write_short(savef, t->_t._t_flags);
rs_write_stats(savef, &t->_t._t_stats);
rs_write_room_reference(savef, t->_t._t_room);
fprintf(stderr,"pack\n");
rs_write_object_list(rs,savef, t->_t._t_pack);
//fprintf(stderr,"%ld\n",ftell(savef));
@ -2101,7 +2100,6 @@ rs_save_file(struct rogue_state *rs,FILE *savef)
rs_write_coord(savef, oldpos);
rs_write_coord(savef, stairs);
rs_write_thing(rs,savef, &player);
fprintf(stderr,"references\n");
rs_write_object_reference(savef, player.t_pack, cur_armor);
rs_write_object_reference(savef, player.t_pack, cur_ring[0]);
rs_write_object_reference(savef, player.t_pack, cur_ring[1]);
@ -2109,9 +2107,7 @@ rs_save_file(struct rogue_state *rs,FILE *savef)
rs_write_object_reference(savef, player.t_pack, l_last_pick);
rs_write_object_reference(savef, player.t_pack, last_pick);
fprintf(stderr,"lvl_obj\n");
rs_write_object_list(rs,savef, lvl_obj);
fprintf(stderr,"mlist\n");
rs_write_thing_list(rs,savef, mlist);
rs_write_places(savef,places,MAXLINES*MAXCOLS);

Loading…
Cancel
Save