Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Original-Bug: Compass disappeares #1

Open
Henne opened this issue Dec 26, 2010 · 1 comment
Open

Original-Bug: Compass disappeares #1

Henne opened this issue Dec 26, 2010 · 1 comment

Comments

@Henne
Copy link
Owner

Henne commented Dec 26, 2010

The compass does not get drawn, when a game is loaded from a temple and the savegame is in a dungeon.

If the savegame is in a city it works correct.
If the savegame is reloaded from within the dungeon, it works correct, too.

@tuxor1337
Copy link
Contributor

tuxor1337 commented Feb 7, 2016

You probably already checked this, but for the sake of documentation I want to leave this piece of information here:

The compass is not drawn because the FADING_STATE has the value 2 in the situation you describe. Now some remarks on the FADING_STATE. It only takes one of the values 0, 1, 2, 3. More precisely:

  • 0: The only place where it is set to this value is in city_fade_and_colors which is called only from game_loop() -> do_town() -> city_step() -> seg066_10c8() -> seg066_0692(). If it's not 0 on entering the function city_fade_and_colors, we see a fade-in and it's set to 0.
  • 1: The only places where it takes this value (apart from leave_dungeon and at the end of do_travel_mode) is city_fade_and_colors. But it's always 0 when leaving this function. And it's never explicitly checked whether it takes the value 1.
  • 2: The only place where it is set to this value is in void copy_palette(void). The only place where this function is called is on leaving a location (especially on leaving a temple!).
  • 3: It takes this value on leaving several states like the game_options, the status_menu or a fight. Furthermore it takes this value at the end of load_game_state.

Apart from that, the meaning of the FADING_STATE is currently not clear, but it has to do with fading or a change of location/state.

Apparently, the problem is that this flag should be something different from 2 whenever we are in a dungeon. And the best place to handle this is in do_dungeon which I haven't had time to look into yet.

xor2003 pushed a commit to xor2003/libdosbox_obsolete that referenced this issue Oct 25, 2021
xor2003 pushed a commit to xor2003/libdosbox_obsolete that referenced this issue Nov 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants