Repository navigation
Run history fix - #834
Run history fix#834
Conversation
Changed GAME_MODE_NORMAL to GAME_MODE_WIZARD so that normal mode gets saved in the run history file.
| } | ||
|
|
||
| if (!rogue.playbackMode && rogue.mode != GAME_MODE_EASY && rogue.mode != GAME_MODE_NORMAL) { | ||
| if (!rogue.playbackMode && rogue.mode != GAME_MODE_EASY && rogue.mode != GAME_MODE_WIZARD) { |
There was a problem hiding this comment.
Thanks for the PR. Would it work to instead change the last 2 parts of this condition to rogue.mode == GAME_MODE_NORMAL? That would make this code a bit simpler.
|
It should work. Honestly, I don't know why that line of code doesn't just check directly for normal mode. I think we should also change line #1210 in the same file, for the cases of quitting/dying being saved in the run history: Unless there's a good reason why it should stay as before? |
|
It looks like before #760, the two checks couldn't be merged since they checked two different variables (it checked |
Saving run history now checks for normal mode directly.
|
Ok, done! Both lines have been simplified, in addition to the fix. |
|
Should this be on the |
|
Probably. I'll pay attention to branches (release/master) next time. Should I just close this and open a new pull request targeting the release branch? Or should I wait to see what Tmewett wants to do? I believe he is able to unilaterally merge into 'release' on his own. |
|
It's possible to change an existing PR to target a different branch by clicking the edit button next to the title; unfortunately that only works well if both branches have the same newest commit, which isn't the case at the moment. It doesn't seem possible to change the source branch in the same way, so doing this would require modifying your branch to build on top of |
|
Yeah, sadly I can't do that much branch reshuffling via the web UI. Thanks for the PR, I've just applied it to 'master' and I can cherry-pick it to 'release' if needed :) |
This should fix issue #833.
Previously, not-playback, not-easy, not-normal mode was saved, i.e. wizard mode.
It should now be not-playback, not-easy, not-wizard mode, i.e. normal mode that gets saved in BrogueRunHistory.txt.