Lines Matching defs:next_room
317 int i, just_moved_by_bats, next_room, tunnel_available;
328 next_room = atoi(room_number);
331 if (next_room == room_num + 1 &&
332 cave[player_loc].tunnel[link_num-1] != next_room)
333 ++next_room;
335 while (next_room < 1 || next_room > room_num + 1) {
336 if (next_room < 0 && next_room != -1)
338 if (next_room > room_num + 1)
340 if (next_room == room_num + 1 &&
341 cave[player_loc].tunnel[link_num-1] != next_room) {
343 ++next_room;
349 next_room = atoi(answer);
355 if (cave[player_loc].tunnel[i] == next_room)
372 if (next_room == room_num + 1)
373 jump(next_room = (random() % room_num) + 1);
375 player_loc = next_room;
377 if (next_room == wumpus_loc) { /* uh oh... */
381 if (cave[next_room].has_a_pit) {
391 if (cave[next_room].has_a_bat) {
395 next_room = player_loc = (random() % room_num) + 1;