U303 - starting the game as a male valkyrie
A core fixup if the the port startup code sets an invalid flags.female when starting a new game. The old comment regarding being unable to change flags.female was not completely correct. The flags.pantheon can be used to differenciate new games from a restored game.
This commit is contained in:
@@ -78,6 +78,7 @@ several sit-in-trap cases were unreachable
|
||||
curse candelabrum in bones, like other similar artifacts
|
||||
detecting a trap in a chest while confused should not exercise wisdom
|
||||
any golem statue hit with stone-to-flesh spell animates as flesh golem
|
||||
correct invalid startup gender selection
|
||||
|
||||
|
||||
Platform- and/or Interface-Specific Fixes
|
||||
|
||||
12
src/role.c
12
src/role.c
@@ -1368,13 +1368,15 @@ role_init()
|
||||
if (!validrace(flags.initrole, flags.initrace))
|
||||
flags.initrace = randrace(flags.initrole);
|
||||
|
||||
/* Check for a valid gender. Try flags.igend first. */
|
||||
/* Check for a valid gender. If new game, check both initgend
|
||||
* and female. On restore, assume flags.female is correct. */
|
||||
if (flags.pantheon == -1) { /* new game */
|
||||
if (!validgend(flags.initrole, flags.initrace, flags.female))
|
||||
flags.female = !flags.female;
|
||||
}
|
||||
if (!validgend(flags.initrole, flags.initrace, flags.initgend))
|
||||
/* Use flags.female second. Note that there is no way
|
||||
* to check for an unspecified gender.
|
||||
*/
|
||||
/* Note that there is no way to check for an unspecified gender. */
|
||||
flags.initgend = flags.female;
|
||||
/* Don't change flags.female; this may be a restore */
|
||||
|
||||
/* Check for a valid alignment */
|
||||
if (!validalign(flags.initrole, flags.initrace, flags.initalign))
|
||||
|
||||
Reference in New Issue
Block a user