Fix game build and Windows build

This commit is contained in:
2015-06-08 18:27:30 -04:00
committed by Celtic Minstrel
parent 6ef026500f
commit 2b7e754fdc
2 changed files with 2 additions and 6 deletions

View File

@@ -176,7 +176,7 @@ bool cCurTown::prep_talk(short which) {
void cCurTown::prep_arena() {
if(arena != nullptr) delete arena;
arena = new cMedTown(univ.scenario, false);
arena = new cMedTown(univ.scenario);
}
cCurTown::~cCurTown() {

View File

@@ -198,11 +198,7 @@ LRESULT CALLBACK menuProc(HWND handle, UINT message, WPARAM wParam, LPARAM lPara
}
if(message == WM_COMMAND) {
int cmd = LOWORD(wParam);
if(cmd >= 10000 && cmd < 20000) { // Item menus
handle_item_menu(cmd - 10000);
} else if(cmd >= 20000 && cmd < 30000) { // Monster menus
handle_monst_menu(cmd - 20000);
} else handle_menu_choice(menuChoices[cmd]);
handle_menu_choice(menuChoices[cmd]);
} else if(message == WM_SETCURSOR) {
// Windows resets the cursor to an arrow whenever the mouse moves, unless we do this.
// Note: By handling this message, sf::Window::setMouseCursorVisible() will NOT work.