Lines Matching refs:play

76 extern GameState play;
146 if ((play.ground_level_areas_disabled & GLED_INTERACTION) == 0) { in game_loop_check_ground_level_interactions()
156 if (onRegion != play.player_on_region) { in game_loop_check_ground_level_interactions()
159 int oldRegion = play.player_on_region; in game_loop_check_ground_level_interactions()
161 play.player_on_region = onRegion; in game_loop_check_ground_level_interactions()
169 if (play.player_on_region > 0) // player stands on region in game_loop_check_ground_level_interactions()
170 RunRegionInteraction (play.player_on_region, 0); in game_loop_check_ground_level_interactions()
234 if ((play.in_cutscene == 3) || (play.in_cutscene == 4)) in check_mouse_controls()
236 if ((play.in_cutscene == 5) && (mbut == RIGHT)) in check_mouse_controls()
239 if (play.fast_forward) { } in check_mouse_controls()
240 else if ((play.wait_counter > 0) && (play.key_skip_wait > 1)) in check_mouse_controls()
241 play.wait_counter = -1; in check_mouse_controls()
243 if (play.cant_skip_speech & SKIP_MOUSECLICK) in check_mouse_controls()
367 int was_playing = play.playback; in check_keyboard_controls()
378 if (kgn == play.replay_hotkey) { in check_keyboard_controls()
380 if (play.recording) in check_keyboard_controls()
382 else if ((play.playback) || (was_playing)) in check_keyboard_controls()
390 if (play.fast_forward) { } in check_keyboard_controls()
395 else if ((kgn == '`') && (play.debug_mode > 0)) { in check_keyboard_controls()
400 (play.cant_skip_speech & SKIP_KEYPRESS) && in check_keyboard_controls()
407 if ((play.skip_speech_specific_key > 0) && in check_keyboard_controls()
408 (kgn != play.skip_speech_specific_key)) { } in check_keyboard_controls()
413 else if ((play.wait_counter > 0) && (play.key_skip_wait > 0)) { in check_keyboard_controls()
414 play.wait_counter = -1; in check_keyboard_controls()
422 else if ((kgn == 4) && (play.debug_mode > 0)) { in check_keyboard_controls()
431 (play.ground_level_areas_disabled == 0) ? "" : "[Ground areas disabled.", in check_keyboard_controls()
473 (play.wait_counter < 1) && (is_text_overlay == 0) && (restrict_until == 0)) in check_keyboard_controls()
477 play.debug_mode++; in check_keyboard_controls()
479 play.debug_mode--; in check_keyboard_controls()
540 ((play.ground_level_areas_disabled & GLED_INTERACTION) == 0)) { in check_room_edges()
551 if ((play.entered_edge >= 0) && (play.entered_edge <= 3)) { in check_room_edges()
553 if (edgesActivated[play.entered_edge] == 0) in check_room_edges()
554 play.entered_edge = -10; in check_room_edges()
557 edgesActivated[play.entered_edge] = 0; in check_room_edges()
606 if (!play.fast_forward) { in game_loop_do_render_and_check_mouse()
658 if (play.bg_anim_delay > 0) play.bg_anim_delay--; in game_loop_update_background_animation()
659 else if (play.bg_frame_locked) ; in game_loop_update_background_animation()
661 play.bg_anim_delay = play.anim_background_speed; in game_loop_update_background_animation()
662 play.bg_frame++; in game_loop_update_background_animation()
663 if (play.bg_frame >= thisroom.num_bscenes) in game_loop_update_background_animation()
664 play.bg_frame=0; in game_loop_update_background_animation()
676 if (play.wait_counter > 0) play.wait_counter--; in game_loop_update_loop_counter()
677 if (play.shakesc_length > 0) play.shakesc_length--; in game_loop_update_loop_counter()
727 if ((play.no_hicolor_fadein) && (game.options[OPT_FADETYPE] == FADE_NORMAL)) in UpdateGameOnce()
728 play.screen_is_faded_out = 0; in UpdateGameOnce()
779 if (play.fast_forward) in UpdateGameOnce()
797 if ((play.get_loc_name_save_cursor >= 0) && in UpdateMouseOverLocation()
798 (play.get_loc_name_save_cursor != play.get_loc_name_last_time) && in UpdateMouseOverLocation()
802 play.get_loc_name_save_cursor = -1; in UpdateMouseOverLocation()
803 set_cursor_mode(play.restore_cursor_mode_to); in UpdateMouseOverLocation()
805 if (cur_mode == play.restore_cursor_mode_to) in UpdateMouseOverLocation()
809 set_mouse_cursor(play.restore_cursor_image_to); in UpdateMouseOverLocation()
811 …debug_script_log("Restore mouse to mode %d cursor %d", play.restore_cursor_mode_to, play.restore_c… in UpdateMouseOverLocation()
863 play.disabled_user_interface--; in UpdateWaitMode()
902 play.disabled_user_interface++; in SetupLoopParameters()