変愚蛮怒のメインリポジトリです
Revision | e48c9a10e3b72c20ea2a769925719dc602199fcf (tree) |
---|---|
Time | 2004-08-11 22:56:14 |
Author | nothere <nothere@0568...> |
Commiter | nothere |
プレイヤーが死亡して次のプレイで名前を変えるとセーブファイルが新規作
成されるバグを修正.
@@ -6223,8 +6223,8 @@ static bool player_birth_aux(void) | ||
6223 | 6223 | /* Get a name, recolor it, prepare savefile */ |
6224 | 6224 | get_name(); |
6225 | 6225 | |
6226 | - /* Process the player name (accept as savefile name) */ | |
6227 | - process_player_name(TRUE); | |
6226 | + /* Process the player name */ | |
6227 | + process_player_name(creating_savefile); | |
6228 | 6228 | |
6229 | 6229 | /*** Edit character background ***/ |
6230 | 6230 | edit_history(); |
@@ -6646,6 +6646,8 @@ quit(" | ||
6646 | 6646 | quit(0); |
6647 | 6647 | } |
6648 | 6648 | |
6649 | + creating_savefile = new_game; | |
6650 | + | |
6649 | 6651 | /* Nothing loaded */ |
6650 | 6652 | if (!character_loaded) |
6651 | 6653 | { |
@@ -6760,6 +6762,8 @@ quit(" | ||
6760 | 6762 | } |
6761 | 6763 | } |
6762 | 6764 | |
6765 | + creating_savefile = FALSE; | |
6766 | + | |
6763 | 6767 | p_ptr->teleport_town = FALSE; |
6764 | 6768 | p_ptr->sutemi = FALSE; |
6765 | 6769 | world_monster = FALSE; |
@@ -146,6 +146,7 @@ extern bool character_loaded; | ||
146 | 146 | extern bool character_saved; |
147 | 147 | extern bool character_icky; |
148 | 148 | extern bool character_xtra; |
149 | +extern bool creating_savefile; | |
149 | 150 | extern u32b seed_flavor; |
150 | 151 | extern u32b seed_town; |
151 | 152 | extern s16b command_cmd; |
@@ -88,6 +88,8 @@ bool character_saved; /* The character was just saved to a savefile */ | ||
88 | 88 | bool character_icky; /* The game is in an icky full screen mode */ |
89 | 89 | bool character_xtra; /* The game is in an icky startup mode */ |
90 | 90 | |
91 | +bool creating_savefile; /* New savefile is currently created */ | |
92 | + | |
91 | 93 | u32b seed_flavor; /* Hack -- consistent object colors */ |
92 | 94 | u32b seed_town; /* Hack -- consistent town layout */ |
93 | 95 |