- admin connected to a headless server can now restore auto saved game settings

This commit is contained in:
Mark Vejvoda
2011-12-03 08:17:49 +00:00
parent 8a5d4463a6
commit 6c945a4aa6
6 changed files with 748 additions and 551 deletions

View File

@@ -79,8 +79,14 @@ static HWND GetSDLWindow()
#endif
Window::Window() {
// Default to 1x1 until set by caller to avoid divide by 0
this->w = 1;
this->h = 1;
for(int idx = 0; idx < mbCount; idx++) {
lastMouseDown[idx] = 0;
lastMouseDown[idx] = 0;
lastMouseX[idx] = 0;
lastMouseY[idx] = 0;
}
assert(global_window == 0);