Commit f5d1f205 authored by Chen Bill's avatar Chen Bill Committed by GitHub

update Game::Initialize (#2725)

parent 94fb5bc9
...@@ -83,19 +83,6 @@ bool Game::Initialize() { ...@@ -83,19 +83,6 @@ bool Game::Initialize() {
#ifndef _DEBUG #ifndef _DEBUG
device->getLogger()->setLogLevel(irr::ELOG_LEVEL::ELL_ERROR); device->getLogger()->setLogLevel(irr::ELOG_LEVEL::ELL_ERROR);
#endif #endif
xScale = 1;
yScale = 1;
linePatternD3D = 0;
linePatternGL = 0x0f0f;
waitFrame = 0;
signalFrame = 0;
showcard = 0;
is_attacking = false;
lpframe = 0;
always_chain = false;
ignore_chain = false;
chain_when_avail = false;
is_building = false;
deckManager.LoadLFList(); deckManager.LoadLFList();
driver = device->getVideoDriver(); driver = device->getVideoDriver();
driver->setTextureCreationFlag(irr::video::ETCF_CREATE_MIP_MAPS, false); driver->setTextureCreationFlag(irr::video::ETCF_CREATE_MIP_MAPS, false);
...@@ -982,8 +969,6 @@ bool Game::Initialize() { ...@@ -982,8 +969,6 @@ bool Game::Initialize() {
yScale = window_size.Height / 640.0; yScale = window_size.Height / 640.0;
OnResize(); OnResize();
} }
hideChat = false;
hideChatTimer = 0;
return true; return true;
} }
void Game::MainLoop() { void Game::MainLoop() {
......
...@@ -240,41 +240,41 @@ public: ...@@ -240,41 +240,41 @@ public:
std::wstring chatMsg[8]; std::wstring chatMsg[8];
std::vector<BotInfo> botInfo; std::vector<BotInfo> botInfo;
int hideChatTimer; int hideChatTimer{};
bool hideChat; bool hideChat{};
int chatTiming[8]{}; int chatTiming[8]{};
int chatType[8]{}; int chatType[8]{};
unsigned short linePatternD3D; unsigned short linePatternD3D{};
unsigned short linePatternGL; unsigned short linePatternGL{ 0x0f0f };
int waitFrame; int waitFrame{};
int signalFrame; int signalFrame{};
int actionParam; int actionParam{};
int showingcode; int showingcode{};
const wchar_t* showingtext; const wchar_t* showingtext{};
int showcard; int showcard{};
int showcardcode; int showcardcode{};
int showcarddif; int showcarddif{};
int showcardp; int showcardp{};
int is_attacking; int is_attacking{};
int attack_sv; int attack_sv{};
irr::core::vector3df atk_r; irr::core::vector3df atk_r;
irr::core::vector3df atk_t; irr::core::vector3df atk_t;
float atkdy; float atkdy{};
int lpframe; int lpframe{};
int lpd; int lpd{};
int lpplayer; int lpplayer{};
int lpccolor; int lpccolor{};
std::wstring lpcstring; std::wstring lpcstring;
bool always_chain; bool always_chain{};
bool ignore_chain; bool ignore_chain{};
bool chain_when_avail; bool chain_when_avail{};
bool is_building; bool is_building{};
bool is_siding; bool is_siding{};
irr::core::dimension2d<irr::u32> window_size; irr::core::dimension2d<irr::u32> window_size;
float xScale; float xScale{ 1.0f };
float yScale; float yScale{ 1.0f };
ClientField dField; ClientField dField;
DeckBuilder deckBuilder; DeckBuilder deckBuilder;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment