fix leaving the tutorial levels
While running the tutorial, the Save command is disabled. When the tutorial was extended to two levels, stashing and restoring the hero's equipment stopped working as intended if player entered the second level. The attempted fix for that broke re-enabling Save even if the player left the tutorial without entering its second level. This seems to fix things, but I'm flailing around with barely a clue here. A couple of simpler attempts didn't work and I haven't figured out why, so this is a bit more complex than what I wanted. Reorganizing nhl_callback() isn't part of the fix, just avoids use of some redundant code.
This commit is contained in:
@@ -635,6 +635,8 @@ enum nhcore_calls {
|
||||
NHCORE_MOVELOOP_TURN,
|
||||
NHCORE_GAME_EXIT,
|
||||
NHCORE_GETPOS_TIP,
|
||||
NHCORE_ENTER_TUTORIAL,
|
||||
NHCORE_LEAVE_TUTORIAL,
|
||||
|
||||
NUM_NHCORE_CALLS
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user