/*
* Quest constants
*/
-enum class QuestId : int16_t{
+enum class QuestId : short{
NONE = 0, /* クエストなし */
THIEF = 1, /*<! 盗賊の隠れ家 */
SEWER = 2, /*<! 下水道 */
class PlayerType;
enum parse_error_type : int;
-enum class QuestId : int16_t;
+enum class QuestId : short;
parse_error_type parse_fixed_map(PlayerType *player_ptr, std::string_view name, int ymin, int xmin, int ymax, int xmax);
std::set<QuestId> parse_quest_info(std::string_view file_name);
#include <vector>
class PlayerType;
-enum class QuestId : int16_t;
+enum class QuestId : short;
void do_cmd_checkquest(PlayerType *player_ptr);
void do_cmd_knowledge_quests_completed(PlayerType *player_ptr, FILE *fff, const std::vector<QuestId> &quest_numbers);
void do_cmd_knowledge_quests_failed(PlayerType *player_ptr, FILE *fff, const std::vector<QuestId> &quest_numbers);
wsprintfA(buf, "%d", td->tile_hgt);
WritePrivateProfileStringA(sec_name, "TileHgt", buf, ini_file);
- WINDOWPLACEMENT lpwndpl;
+ WINDOWPLACEMENT lpwndpl{};
lpwndpl.length = sizeof(WINDOWPLACEMENT);
GetWindowPlacement(td->w, &lpwndpl);
tile_wid = td->tile_wid;
tile_hgt = td->tile_hgt;
- RECT rc;
+ RECT rc{};
rc.left = x * tile_wid + td->size_ow1;
rc.right = rc.left + tile_wid;
rc.top = y * tile_hgt + td->size_oh1;
tile_wid = td->tile_wid;
tile_hgt = td->tile_hgt;
- RECT rc;
+ RECT rc{};
rc.left = x * tile_wid + td->size_ow1;
rc.right = rc.left + 2 * tile_wid;
rc.top = y * tile_hgt + td->size_oh1;
static errr term_wipe_win(int x, int y, int n)
{
term_data *td = (term_data *)(game_term->data);
- RECT rc;
+ RECT rc{};
rc.left = x * td->tile_wid + td->size_ow1;
rc.right = rc.left + n * td->tile_wid;
rc.top = y * td->tile_hgt + td->size_oh1;
#include "main-win/main-win-utils.h"
#include "system/system-variables.h"
#include "util/angband-files.h"
-
-#pragma warning(push)
-#pragma warning(disable : 4458)
#include <gdiplus.h>
-#pragma warning(pop)
// Flag set once "GDI+" has been initialized
bool gdi_plus_started = false;