3 #include "world/world.h"
6 * @brief プレイ日数を変更する / Set gametime.
7 * @return 実際に変更を行ったらTRUEを返す
9 bool set_gametime(void)
12 char ppp[80], tmp_val[40];
14 sprintf(ppp, "Dungeon Turn (0-%ld): ", (long)current_world_ptr->dungeon_turn_limit);
15 sprintf(tmp_val, "%ld", (long)current_world_ptr->dungeon_turn);
16 if (!get_string(ppp, tmp_val, 10)) return FALSE;
17 tmp_int = atoi(tmp_val);
20 if (tmp_int >= current_world_ptr->dungeon_turn_limit) tmp_int = current_world_ptr->dungeon_turn_limit - 1;
21 else if (tmp_int < 0) tmp_int = 0;
22 current_world_ptr->dungeon_turn = current_world_ptr->game_turn = tmp_int;