I'm trying to move everyone in one room to another room.. seems simple enough.. but..... well here's an example of what I have: struct char_data *tmp_ch; extern struct room_data *world; int room1, room2; room1 = real_room(1); room2 = real_room(2); for (tmp_ch = world[room1].people; tmp_ch; tmp_ch = tmp_ch->next_in_room) { char_from_room(tmp_ch); char_to_room(tmp_ch, room2); do_look(tmp_ch, "", 0, 0); } } It seems like this would work.. but it doesn't .. (I think because tmp_ch->next_in_room gets messed up when you move tmp_ch to a different room) .. so how do I go about moving everyone from one room to another?
This archive was generated by hypermail 2b30 : 12/07/00 PST