Commit 111c7e6a authored by DailyShana's avatar DailyShana

remove global variable

parent 2657118a
......@@ -339,7 +339,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
case irr::EET_MOUSE_INPUT_EVENT: {
switch(event.MouseInput.Event) {
case irr::EMIE_LMOUSE_PRESSED_DOWN: {
mouse_pos = position2d<s32>(event.MouseInput.X, event.MouseInput.Y);
position2d<s32> mouse_pos = position2d<s32>(event.MouseInput.X, event.MouseInput.Y);
if(mainGame->cbDBLFList->getElementFromPoint(mouse_pos)
|| mainGame->cbDBDecks->getElementFromPoint(mouse_pos)
|| mainGame->cbCardType->getElementFromPoint(mouse_pos)
......
......@@ -34,7 +34,6 @@ public:
int hovered_pos;
int hovered_seq;
int click_pos;
position2d<s32> mouse_pos;
bool is_draging;
int dragx;
int dragy;
......
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