comparison Game.cpp @ 227:bcd55744c2f4

Clicking background in MainMenu fix
author Nomad
date Sun, 17 Feb 2013 15:09:31 +0200
parents 650d96af8855
children 96bc024a5fed
comparison
equal deleted inserted replaced
226:c2f2d2644304 227:bcd55744c2f4
1022 } 1022 }
1023 1023
1024 //----- (0044EA5E) -------------------------------------------------------- 1024 //----- (0044EA5E) --------------------------------------------------------
1025 bool Game::PickMouse(float fPickDepth, unsigned int uMouseX, unsigned int uMouseY, bool bOutline, Vis_SelectionFilter *sprite_filter, Vis_SelectionFilter *face_filter) 1025 bool Game::PickMouse(float fPickDepth, unsigned int uMouseX, unsigned int uMouseY, bool bOutline, Vis_SelectionFilter *sprite_filter, Vis_SelectionFilter *face_filter)
1026 { 1026 {
1027 if (pCurrentScreen || !pRenderer->pRenderD3D) 1027 if (pCurrentScreen != SCREEN_GAME|| !pRenderer->pRenderD3D)
1028 return false; 1028 return false;
1029 1029
1030 if (!pVisInstance) 1030 if (!pVisInstance)
1031 { 1031 {
1032 MessageBoxW(nullptr, L"The 'Vis' object pointer has not been instatiated, but CGame::Pick() is trying to call through it.", nullptr, 0); 1032 MessageBoxW(nullptr, L"The 'Vis' object pointer has not been instatiated, but CGame::Pick() is trying to call through it.", nullptr, 0);