OSDN Git Service

新規ゲーム開始のときのパネルの位置が変だったので、再修正。
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 15 Mar 2002 10:54:30 +0000 (10:54 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 15 Mar 2002 10:54:30 +0000 (10:54 +0000)
src/dungeon.c
src/generate.c
src/init1.c
src/variable.c
src/wild.c
src/xtra2.c

index 14a256e..271df19 100644 (file)
@@ -6246,6 +6246,10 @@ quit("
        start_time = time(NULL) - 1;
        record_o_name[0] = '\0';
 
+       /* Reset map panel */
+       panel_row_min = cur_hgt;
+       panel_col_min = cur_wid;
+
        /* Sexy gal gets bonus to maximum weapon skill of whip */
        if(p_ptr->pseikaku == SEIKAKU_SEXY)
                s_info[p_ptr->pclass].w_max[TV_HAFTED-TV_BOW][SV_WHIP] = 8000;
index 0e29adb..46bd9ea 100644 (file)
@@ -1392,8 +1392,8 @@ msg_print("
                cur_wid = level_width * SCREEN_WID;
 
                /* Assume illegal panel */
-               panel_row_min = 255;
-               panel_col_min = 255;
+               panel_row_min = cur_hgt;
+               panel_col_min = cur_wid;
 
                if (cheat_room)
                  msg_format("X:%d, Y:%d.", cur_hgt, cur_wid);
@@ -1405,8 +1405,8 @@ msg_print("
                cur_wid = MAX_WID;
 
                /* Assume illegal panel */
-               panel_row_min = 255;
-               panel_col_min = 255;
+               panel_row_min = cur_hgt;
+               panel_col_min = cur_wid;
        }
 
        /* Make a dungeon */
index 94da158..ba3f022 100644 (file)
@@ -3558,8 +3558,8 @@ static errr process_dungeon_file_aux(char *buf, int ymin, int xmin, int ymax, in
                                cur_wid = panels_x * SCREEN_WID;
 
                                /* Assume illegal panel */
-                               panel_row_min = 255;
-                               panel_col_min = 255;
+                               panel_row_min = cur_hgt;
+                               panel_col_min = cur_wid;
 
                                /* Place player in a quest level */
                                if (p_ptr->inside_quest)
index 052806c..e8f2c6b 100644 (file)
@@ -345,7 +345,7 @@ bool closing_flag;          /* Dungeon is closing */
  * Dungeon size info
  */
 
-s16b panel_row_min = 255, panel_row_max = 255;
+s16b panel_row_min, panel_row_max;
 s16b panel_col_min, panel_col_max;
 s16b panel_col_prt, panel_row_prt;
 
index 30094c1..224f2a7 100644 (file)
@@ -647,8 +647,8 @@ void wilderness_gen(void)
        cur_wid = MAX_WID;
 
        /* Assume illegal panel */
-       panel_row_min = 255;
-       panel_col_min = 255;
+       panel_row_min = cur_hgt;
+       panel_col_min = cur_wid;
 
        /* Init the wilderness */
 
@@ -911,8 +911,8 @@ void wilderness_gen_small()
        if (cur_wid > MAX_WID) cur_wid = MAX_WID;
 
        /* Assume illegal panel */
-       panel_row_min = 255;
-       panel_col_min = 255;
+       panel_row_min = cur_hgt;
+       panel_col_min = cur_wid;
 
         /* Place the player */
         px = p_ptr->wilderness_x;
index f4f80cb..6289e54 100644 (file)
@@ -2168,9 +2168,7 @@ void resize_map(void)
        if (!character_dungeon) return;
        
        /* Mega-Hack -- no panel yet */
-       panel_row_min = 0;
        panel_row_max = 0;
-       panel_col_min = 0;
        panel_col_max = 0;
 
        /* Reset the panels */