Norbert wrote: ↑March 15th, 2019, 8:26 pm
Prince just jumps up in front of the level exit door.
He doesn't enter that door.
So, same as when I played myself.
Well, that's odd.
Entering the exit is checked in the up_pressed() function in seg005.c.
You could add the following debug printout before "if ((leveldoor_tilepos != -1)" to output the values of the variables involved in the condition.
Code: Select all
printf("\n");
printf("leveldoor_tilepos = %d\n", leveldoor_tilepos);
printf("level.start_room = %d\n", level.start_room);
printf("drawn_room = %d\n", drawn_room);
printf("fixes->fix_exit_door = %d\n", fixes->fix_exit_door);
printf("curr_room_modif[leveldoor_tilepos] = %d\n", curr_room_modif[leveldoor_tilepos]);
printf("leveldoor_open = %d\n", leveldoor_open);
Then play the recording from my previous post.
SDLPoP will output the debug info every time up is pressed, but you only need to look at the last one.
On my system, this is the last output, when the prince enters the closed exit door:
Code: Select all
leveldoor_tilepos = 23
level.start_room = 2
drawn_room = 9
fixes->fix_exit_door = 0
curr_room_modif[leveldoor_tilepos] = 0
leveldoor_open = 1