• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revisione48c9a10e3b72c20ea2a769925719dc602199fcf (tree)
Time2004-08-11 22:56:14
Authornothere <nothere@0568...>
Commiternothere

Log Message

プレイヤーが死亡して次のプレイで名前を変えるとセーブファイルが新規作
成されるバグを修正.

Change Summary

Incremental Difference

--- a/src/birth.c
+++ b/src/birth.c
@@ -6223,8 +6223,8 @@ static bool player_birth_aux(void)
62236223 /* Get a name, recolor it, prepare savefile */
62246224 get_name();
62256225
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);
62286228
62296229 /*** Edit character background ***/
62306230 edit_history();
--- a/src/dungeon.c
+++ b/src/dungeon.c
@@ -6646,6 +6646,8 @@ quit("
66466646 quit(0);
66476647 }
66486648
6649+ creating_savefile = new_game;
6650+
66496651 /* Nothing loaded */
66506652 if (!character_loaded)
66516653 {
@@ -6760,6 +6762,8 @@ quit("
67606762 }
67616763 }
67626764
6765+ creating_savefile = FALSE;
6766+
67636767 p_ptr->teleport_town = FALSE;
67646768 p_ptr->sutemi = FALSE;
67656769 world_monster = FALSE;
--- a/src/externs.h
+++ b/src/externs.h
@@ -146,6 +146,7 @@ extern bool character_loaded;
146146 extern bool character_saved;
147147 extern bool character_icky;
148148 extern bool character_xtra;
149+extern bool creating_savefile;
149150 extern u32b seed_flavor;
150151 extern u32b seed_town;
151152 extern s16b command_cmd;
--- a/src/variable.c
+++ b/src/variable.c
@@ -88,6 +88,8 @@ bool character_saved; /* The character was just saved to a savefile */
8888 bool character_icky; /* The game is in an icky full screen mode */
8989 bool character_xtra; /* The game is in an icky startup mode */
9090
91+bool creating_savefile; /* New savefile is currently created */
92+
9193 u32b seed_flavor; /* Hack -- consistent object colors */
9294 u32b seed_town; /* Hack -- consistent town layout */
9395
Show on old repository browser