Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/seg000.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,8 @@ int quick_process(process_func_type process_func) {
process(ctrl1_up);
process(ctrl1_down);
process(ctrl1_shift2);
// For proper emulation of the overflow glitch
process(exit_room_timer);
// replay recording state
#ifdef USE_REPLAY
process(curr_tick);
Expand Down Expand Up @@ -419,7 +421,7 @@ void restore_room_after_quick_load() {
// Get rid of "press button" message if kid was dead before quickload.
text_time_total = text_time_remaining = 0;
//next_sound = current_sound = -1;
exit_room_timer = 0;
//exit_room_timer = 0; // This prevents the overflow glitch from happening
}

int quick_load() {
Expand Down Expand Up @@ -1249,6 +1251,7 @@ void __pascal far check_the_end() {
end_sequence();
}
different_room = 1;
exit_room_timer = 2; // Added to remember exit room timer
loadkid();
anim_tile_modif();
start_chompers();
Expand Down