Mercurial > mm7
comparison mm7_2.cpp @ 1061:89422dd58318
ODM_ProcessPartyActions cleaned of labels
author | zipi |
---|---|
date | Thu, 23 May 2013 22:07:17 +0100 |
parents | b79139c3b5c8 |
children | e86b4951da70 |
comparison
equal
deleted
inserted
replaced
1060:b79139c3b5c8 | 1061:89422dd58318 |
---|---|
6813 { | 6813 { |
6814 case 103: pRenderer->SavePCXScreenshot(); return 0; | 6814 case 103: pRenderer->SavePCXScreenshot(); return 0; |
6815 | 6815 |
6816 case 101: // Quit game | 6816 case 101: // Quit game |
6817 case 40001: | 6817 case 40001: |
6818 SendMessageA(::hWnd, WM_DESTROY, 0, 0); | 6818 { |
6819 v38 = 0; | |
6820 v37 = 0; | |
6821 v36 = 2; | |
6822 v35 = ::hWnd; | |
6823 SendMessageA(::hWnd, WM_DESTROY, v37, v38); | |
6824 } | |
6819 return 0; | 6825 return 0; |
6820 | 6826 |
6821 | 6827 |
6822 case 104: | 6828 case 104: |
6823 pRenderer->ChangeBetweenWinFullscreenModes(); | 6829 pRenderer->ChangeBetweenWinFullscreenModes(); |
7184 } | 7190 } |
7185 if ( !pArcomageGame->bGameInProgress ) | 7191 if ( !pArcomageGame->bGameInProgress ) |
7186 { | 7192 { |
7187 if ( pVideoPlayer->pVideoFrame.pPixels ) | 7193 if ( pVideoPlayer->pVideoFrame.pPixels ) |
7188 pVideoPlayer->bStopBeforeSchedule = 1; | 7194 pVideoPlayer->bStopBeforeSchedule = 1; |
7189 if ( wParam == VK_RETURN ) | 7195 if ( wParam != VK_RETURN ) |
7190 { | 7196 { |
7191 if ( !viewparams->field_4C ) | 7197 if ( wParam == VK_CONTROL ) |
7192 UI_OnKeyDown(wParam); | 7198 { |
7193 return 0; | 7199 dword_507B98_ctrl_pressed = 1; |
7194 } | |
7195 if ( wParam == VK_CONTROL ) | |
7196 { | |
7197 dword_507B98_ctrl_pressed = 1; | |
7198 return 0; | |
7199 } | |
7200 if ( wParam == VK_ESCAPE ) | |
7201 { | |
7202 pMessageQueue_50CBD0->AddMessage(UIMSG_Escape, window_SpeakInHouse != 0, 0); | |
7203 return 0; | |
7204 } | |
7205 if ( wParam <= VK_HOME ) | |
7206 return 0; | |
7207 if ( wParam > VK_DOWN ) | |
7208 { | |
7209 if ( wParam != VK_F4 || pVideoPlayer->AnyMovieLoaded() ) | |
7210 return 0; | 7200 return 0; |
7211 SendMessageA(hWnd, WM_COMMAND, 104, 0); | 7201 } |
7212 return 0; | 7202 if ( wParam == VK_ESCAPE ) |
7213 } | 7203 { |
7214 if ( wParam >= VK_LEFT && wParam <= VK_DOWN ) | 7204 pMessageQueue_50CBD0->AddMessage(UIMSG_Escape, window_SpeakInHouse != 0, 0); |
7215 { | |
7216 if ( pCurrentScreen != SCREEN_GAME && pCurrentScreen != SCREEN_PRESS_ESCAPE_MESSAGE ) | |
7217 { | |
7218 if ( !viewparams->field_4C ) | |
7219 UI_OnKeyDown(wParam); | |
7220 return 0; | 7205 return 0; |
7221 } | 7206 } |
7222 } | 7207 if ( wParam <= VK_HOME ) |
7223 if ( pCurrentScreen != SCREEN_GAME && pCurrentScreen != SCREEN_PRESS_ESCAPE_MESSAGE ) | 7208 return 0; |
7224 return 0; | 7209 if ( wParam > VK_DOWN ) |
7210 { | |
7211 if ( wParam != VK_F4 || pVideoPlayer->AnyMovieLoaded() ) | |
7212 return 0; | |
7213 v38 = 0; | |
7214 v37 = 104; | |
7215 //LABEL_126: | |
7216 v36 = 273; | |
7217 v35 = hWnd; | |
7218 SendMessageA(hWnd, WM_COMMAND, v37, v38); | |
7219 return 0; | |
7220 } | |
7221 if ( pCurrentScreen != SCREEN_GAME | |
7222 && pCurrentScreen != SCREEN_PRESS_ESCAPE_MESSAGE ) | |
7223 return 0; | |
7224 } | |
7225 if ( !viewparams->field_4C ) | |
7226 UI_OnKeyDown(wParam); | |
7227 return 0; | |
7225 } | 7228 } |
7226 pArcomageGame->stru1.field_0 = 1; | 7229 pArcomageGame->stru1.field_0 = 1; |
7227 if ( (unsigned __int16)GetAsyncKeyState(VK_SHIFT) >> 8 >= 0 ) | 7230 if ( (unsigned __int16)GetAsyncKeyState(VK_SHIFT) >> 8 >= 0 ) |
7231 { | |
7228 v27 = MapVirtualKeyA((unsigned __int16)wParam, 2u); | 7232 v27 = MapVirtualKeyA((unsigned __int16)wParam, 2u); |
7233 } | |
7229 else | 7234 else |
7230 { | 7235 { |
7231 v13 = (unsigned __int16)MapVirtualKeyA((unsigned __int16)wParam, 2u); | 7236 v13 = (unsigned __int16)MapVirtualKeyA((unsigned __int16)wParam, 2u); |
7232 if ( (signed int)(unsigned __int16)v13 > 54 ) | 7237 if ( (signed int)(unsigned __int16)v13 > 54 ) |
7233 { | 7238 { |
7234 if ( v13 > 61 ) | 7239 if ( v13 > 61 ) |
7235 { | 7240 { |
7236 if ( v13 == 91 ) | 7241 v24 = v13 - 91; |
7242 if ( !v24 ) | |
7237 { | 7243 { |
7238 LOBYTE(pArcomageGame->stru1.field_8) = 123; | 7244 LOBYTE(pArcomageGame->stru1.field_8) = 123; |
7239 //goto LABEL_181; | 7245 //goto LABEL_181; |
7240 if ( wParam == 27 ) | 7246 if ( wParam == 27 ) |
7241 { | 7247 { |
7251 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) | 7257 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) |
7252 SendMessageA(hWnd, 0x111u, 0x68u, 0); | 7258 SendMessageA(hWnd, 0x111u, 0x68u, 0); |
7253 //goto _def_wnd_proc; | 7259 //goto _def_wnd_proc; |
7254 return DefWindowProcA(hWnd, Msg, wParam, lParam); | 7260 return DefWindowProcA(hWnd, Msg, wParam, lParam); |
7255 } | 7261 } |
7256 SendMessageA(hWnd, WM_COMMAND, 103, 0); | 7262 v38 = 0; |
7263 v37 = 103; | |
7264 //goto LABEL_126; | |
7265 v36 = 273; | |
7266 v35 = hWnd; | |
7267 SendMessageA(hWnd, WM_COMMAND, v37, v38); | |
7257 return 0; | 7268 return 0; |
7258 } | 7269 } |
7259 if ( v13 == 92 ) | 7270 v25 = v24 - 1; |
7271 if ( !v25 ) | |
7260 { | 7272 { |
7261 LOBYTE(pArcomageGame->stru1.field_8) = 124; | 7273 LOBYTE(pArcomageGame->stru1.field_8) = 124; |
7262 //goto LABEL_181; | 7274 //goto LABEL_181; |
7263 if ( wParam == 27 ) | 7275 if ( wParam == 27 ) |
7264 { | 7276 { |
7274 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) | 7286 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) |
7275 SendMessageA(hWnd, 0x111u, 0x68u, 0); | 7287 SendMessageA(hWnd, 0x111u, 0x68u, 0); |
7276 //goto _def_wnd_proc; | 7288 //goto _def_wnd_proc; |
7277 return DefWindowProcA(hWnd, Msg, wParam, lParam); | 7289 return DefWindowProcA(hWnd, Msg, wParam, lParam); |
7278 } | 7290 } |
7279 SendMessageA(hWnd, WM_COMMAND, 103, 0); | 7291 v38 = 0; |
7292 v37 = 103; | |
7293 //goto LABEL_126; | |
7294 v36 = 273; | |
7295 v35 = hWnd; | |
7296 SendMessageA(hWnd, WM_COMMAND, v37, v38); | |
7280 return 0; | 7297 return 0; |
7281 } | 7298 } |
7282 if ( v13 == 93 ) | 7299 v26 = v25 - 1; |
7300 if ( !v26 ) | |
7283 { | 7301 { |
7284 LOBYTE(pArcomageGame->stru1.field_8) = 125; | 7302 LOBYTE(pArcomageGame->stru1.field_8) = 125; |
7285 //goto LABEL_181; | 7303 //goto LABEL_181; |
7286 if ( wParam == 27 ) | 7304 if ( wParam == 27 ) |
7287 { | 7305 { |
7297 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) | 7315 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) |
7298 SendMessageA(hWnd, 0x111u, 0x68u, 0); | 7316 SendMessageA(hWnd, 0x111u, 0x68u, 0); |
7299 //goto _def_wnd_proc; | 7317 //goto _def_wnd_proc; |
7300 return DefWindowProcA(hWnd, Msg, wParam, lParam); | 7318 return DefWindowProcA(hWnd, Msg, wParam, lParam); |
7301 } | 7319 } |
7302 SendMessageA(hWnd, WM_COMMAND, 103, 0); | 7320 v38 = 0; |
7321 v37 = 103; | |
7322 //goto LABEL_126; | |
7323 v36 = 273; | |
7324 v35 = hWnd; | |
7325 SendMessageA(hWnd, WM_COMMAND, v37, v38); | |
7303 return 0; | 7326 return 0; |
7304 } | 7327 } |
7305 if ( v13 == 96 ) | 7328 if ( v26 == 3 ) |
7306 { | 7329 { |
7307 LOBYTE(pArcomageGame->stru1.field_8) = 126; | 7330 LOBYTE(pArcomageGame->stru1.field_8) = 126; |
7308 //goto LABEL_181; | 7331 //goto LABEL_181; |
7309 if ( wParam == 27 ) | 7332 if ( wParam == 27 ) |
7310 { | 7333 { |
7320 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) | 7343 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) |
7321 SendMessageA(hWnd, 0x111u, 0x68u, 0); | 7344 SendMessageA(hWnd, 0x111u, 0x68u, 0); |
7322 //goto _def_wnd_proc; | 7345 //goto _def_wnd_proc; |
7323 return DefWindowProcA(hWnd, Msg, wParam, lParam); | 7346 return DefWindowProcA(hWnd, Msg, wParam, lParam); |
7324 } | 7347 } |
7325 SendMessageA(hWnd, WM_COMMAND, 103, 0); | 7348 v38 = 0; |
7349 v37 = 103; | |
7350 //goto LABEL_126; | |
7351 v36 = 273; | |
7352 v35 = hWnd; | |
7353 SendMessageA(hWnd, WM_COMMAND, v37, v38); | |
7326 return 0; | 7354 return 0; |
7327 } | 7355 } |
7328 } | 7356 } |
7329 else | 7357 else |
7330 { | 7358 { |
7346 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) | 7374 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) |
7347 SendMessageA(hWnd, 0x111u, 0x68u, 0); | 7375 SendMessageA(hWnd, 0x111u, 0x68u, 0); |
7348 //goto _def_wnd_proc; | 7376 //goto _def_wnd_proc; |
7349 return DefWindowProcA(hWnd, Msg, wParam, lParam); | 7377 return DefWindowProcA(hWnd, Msg, wParam, lParam); |
7350 } | 7378 } |
7351 SendMessageA(hWnd, WM_COMMAND, 103, 0); | 7379 v38 = 0; |
7380 v37 = 103; | |
7381 //goto LABEL_126; | |
7382 v36 = 273; | |
7383 v35 = hWnd; | |
7384 SendMessageA(hWnd, WM_COMMAND, v37, v38); | |
7352 return 0; | 7385 return 0; |
7353 } | 7386 } |
7354 if ( v13 == 55 ) | 7387 v21 = v13 - 55; |
7388 if ( !v21 ) | |
7355 { | 7389 { |
7356 LOBYTE(pArcomageGame->stru1.field_8) = 38; | 7390 LOBYTE(pArcomageGame->stru1.field_8) = 38; |
7357 //goto LABEL_181; | 7391 //goto LABEL_181; |
7358 if ( wParam == 27 ) | 7392 if ( wParam == 27 ) |
7359 { | 7393 { |
7369 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) | 7403 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) |
7370 SendMessageA(hWnd, 0x111u, 0x68u, 0); | 7404 SendMessageA(hWnd, 0x111u, 0x68u, 0); |
7371 //goto _def_wnd_proc; | 7405 //goto _def_wnd_proc; |
7372 return DefWindowProcA(hWnd, Msg, wParam, lParam); | 7406 return DefWindowProcA(hWnd, Msg, wParam, lParam); |
7373 } | 7407 } |
7374 SendMessageA(hWnd, WM_COMMAND, 103, 0); | 7408 v38 = 0; |
7409 v37 = 103; | |
7410 //goto LABEL_126; | |
7411 v36 = 273; | |
7412 v35 = hWnd; | |
7413 SendMessageA(hWnd, WM_COMMAND, v37, v38); | |
7375 return 0; | 7414 return 0; |
7376 } | 7415 } |
7377 if ( v13 == 56 ) | 7416 v22 = v21 - 1; |
7417 if ( !v22 ) | |
7378 { | 7418 { |
7379 LOBYTE(pArcomageGame->stru1.field_8) = 42; | 7419 LOBYTE(pArcomageGame->stru1.field_8) = 42; |
7380 //goto LABEL_181; | 7420 //goto LABEL_181; |
7381 if ( wParam == 27 ) | 7421 if ( wParam == 27 ) |
7382 { | 7422 { |
7392 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) | 7432 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) |
7393 SendMessageA(hWnd, 0x111u, 0x68u, 0); | 7433 SendMessageA(hWnd, 0x111u, 0x68u, 0); |
7394 //goto _def_wnd_proc; | 7434 //goto _def_wnd_proc; |
7395 return DefWindowProcA(hWnd, Msg, wParam, lParam); | 7435 return DefWindowProcA(hWnd, Msg, wParam, lParam); |
7396 } | 7436 } |
7397 SendMessageA(hWnd, WM_COMMAND, 103, 0); | 7437 v38 = 0; |
7438 v37 = 103; | |
7439 //goto LABEL_126; | |
7440 v36 = 273; | |
7441 v35 = hWnd; | |
7442 SendMessageA(hWnd, WM_COMMAND, v37, v38); | |
7398 return 0; | 7443 return 0; |
7399 } | 7444 } |
7400 if ( v13 == 57 ) | 7445 v23 = v22 - 1; |
7446 if ( !v23 ) | |
7401 { | 7447 { |
7402 LOBYTE(pArcomageGame->stru1.field_8) = 40; | 7448 LOBYTE(pArcomageGame->stru1.field_8) = 40; |
7403 //goto LABEL_181; | 7449 //goto LABEL_181; |
7404 if ( wParam == 27 ) | 7450 if ( wParam == 27 ) |
7405 { | 7451 { |
7415 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) | 7461 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) |
7416 SendMessageA(hWnd, 0x111u, 0x68u, 0); | 7462 SendMessageA(hWnd, 0x111u, 0x68u, 0); |
7417 //goto _def_wnd_proc; | 7463 //goto _def_wnd_proc; |
7418 return DefWindowProcA(hWnd, Msg, wParam, lParam); | 7464 return DefWindowProcA(hWnd, Msg, wParam, lParam); |
7419 } | 7465 } |
7420 SendMessageA(hWnd, WM_COMMAND, 103, 0); | 7466 v38 = 0; |
7467 v37 = 103; | |
7468 //goto LABEL_126; | |
7469 v36 = 273; | |
7470 v35 = hWnd; | |
7471 SendMessageA(hWnd, WM_COMMAND, v37, v38); | |
7421 return 0; | 7472 return 0; |
7422 } | 7473 } |
7423 if ( v13 == 59 ) | 7474 if ( v23 == 2 ) |
7424 { | 7475 { |
7425 LOBYTE(pArcomageGame->stru1.field_8) = 58; | 7476 LOBYTE(pArcomageGame->stru1.field_8) = 58; |
7426 //goto LABEL_181; | 7477 //goto LABEL_181; |
7427 if ( wParam == 27 ) | 7478 if ( wParam == 27 ) |
7428 { | 7479 { |
7438 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) | 7489 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) |
7439 SendMessageA(hWnd, 0x111u, 0x68u, 0); | 7490 SendMessageA(hWnd, 0x111u, 0x68u, 0); |
7440 //goto _def_wnd_proc; | 7491 //goto _def_wnd_proc; |
7441 return DefWindowProcA(hWnd, Msg, wParam, lParam); | 7492 return DefWindowProcA(hWnd, Msg, wParam, lParam); |
7442 } | 7493 } |
7443 SendMessageA(hWnd, WM_COMMAND, 103, 0); | 7494 v38 = 0; |
7495 v37 = 103; | |
7496 //goto LABEL_126; | |
7497 v36 = 273; | |
7498 v35 = hWnd; | |
7499 SendMessageA(hWnd, WM_COMMAND, v37, v38); | |
7444 return 0; | 7500 return 0; |
7445 } | 7501 } |
7446 } | 7502 } |
7447 } | 7503 } |
7448 else | 7504 else |
7465 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) | 7521 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) |
7466 SendMessageA(hWnd, 0x111u, 0x68u, 0); | 7522 SendMessageA(hWnd, 0x111u, 0x68u, 0); |
7467 //goto _def_wnd_proc; | 7523 //goto _def_wnd_proc; |
7468 return DefWindowProcA(hWnd, Msg, wParam, lParam); | 7524 return DefWindowProcA(hWnd, Msg, wParam, lParam); |
7469 } | 7525 } |
7470 SendMessageA(hWnd, WM_COMMAND, 103, 0); | 7526 v38 = 0; |
7527 v37 = 103; | |
7528 //goto LABEL_126; | |
7529 v36 = 273; | |
7530 v35 = hWnd; | |
7531 SendMessageA(hWnd, WM_COMMAND, v37, v38); | |
7471 return 0; | 7532 return 0; |
7472 } | 7533 } |
7473 if ( v13 > 49 ) | 7534 if ( v13 > 49 ) |
7474 { | 7535 { |
7475 if ( v13 == 50 ) | 7536 v18 = v13 - 50; |
7537 if ( !v18 ) | |
7476 { | 7538 { |
7477 LOBYTE(pArcomageGame->stru1.field_8) = 64; | 7539 LOBYTE(pArcomageGame->stru1.field_8) = 64; |
7478 //goto LABEL_181; | 7540 //goto LABEL_181; |
7479 if ( wParam == 27 ) | 7541 if ( wParam == 27 ) |
7480 { | 7542 { |
7490 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) | 7552 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) |
7491 SendMessageA(hWnd, 0x111u, 0x68u, 0); | 7553 SendMessageA(hWnd, 0x111u, 0x68u, 0); |
7492 //goto _def_wnd_proc; | 7554 //goto _def_wnd_proc; |
7493 return DefWindowProcA(hWnd, Msg, wParam, lParam); | 7555 return DefWindowProcA(hWnd, Msg, wParam, lParam); |
7494 } | 7556 } |
7495 SendMessageA(hWnd, WM_COMMAND, 103, 0); | 7557 v38 = 0; |
7558 v37 = 103; | |
7559 //goto LABEL_126; | |
7560 v36 = 273; | |
7561 v35 = hWnd; | |
7562 SendMessageA(hWnd, WM_COMMAND, v37, v38); | |
7496 return 0; | 7563 return 0; |
7497 } | 7564 } |
7498 if ( v13 == 51 ) | 7565 v19 = v18 - 1; |
7566 if ( !v19 ) | |
7499 { | 7567 { |
7500 LOBYTE(pArcomageGame->stru1.field_8) = 35; | 7568 LOBYTE(pArcomageGame->stru1.field_8) = 35; |
7501 //goto LABEL_181; | 7569 //goto LABEL_181; |
7502 if ( wParam == 27 ) | 7570 if ( wParam == 27 ) |
7503 { | 7571 { |
7513 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) | 7581 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) |
7514 SendMessageA(hWnd, 0x111u, 0x68u, 0); | 7582 SendMessageA(hWnd, 0x111u, 0x68u, 0); |
7515 //goto _def_wnd_proc; | 7583 //goto _def_wnd_proc; |
7516 return DefWindowProcA(hWnd, Msg, wParam, lParam); | 7584 return DefWindowProcA(hWnd, Msg, wParam, lParam); |
7517 } | 7585 } |
7518 SendMessageA(hWnd, WM_COMMAND, 103, 0); | 7586 v38 = 0; |
7587 v37 = 103; | |
7588 //goto LABEL_126; | |
7589 v36 = 273; | |
7590 v35 = hWnd; | |
7591 SendMessageA(hWnd, WM_COMMAND, v37, v38); | |
7519 return 0; | 7592 return 0; |
7520 } | 7593 } |
7521 if ( v13 == 52 ) | 7594 v20 = v19 - 1; |
7595 if ( !v20 ) | |
7522 { | 7596 { |
7523 LOBYTE(pArcomageGame->stru1.field_8) = 36; | 7597 LOBYTE(pArcomageGame->stru1.field_8) = 36; |
7524 //goto LABEL_181; | 7598 //goto LABEL_181; |
7525 if ( wParam == 27 ) | 7599 if ( wParam == 27 ) |
7526 { | 7600 { |
7536 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) | 7610 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) |
7537 SendMessageA(hWnd, 0x111u, 0x68u, 0); | 7611 SendMessageA(hWnd, 0x111u, 0x68u, 0); |
7538 //goto _def_wnd_proc; | 7612 //goto _def_wnd_proc; |
7539 return DefWindowProcA(hWnd, Msg, wParam, lParam); | 7613 return DefWindowProcA(hWnd, Msg, wParam, lParam); |
7540 } | 7614 } |
7541 SendMessageA(hWnd, WM_COMMAND, 103, 0); | 7615 v38 = 0; |
7616 v37 = 103; | |
7617 //goto LABEL_126; | |
7618 v36 = 273; | |
7619 v35 = hWnd; | |
7620 SendMessageA(hWnd, WM_COMMAND, v37, v38); | |
7542 return 0; | 7621 return 0; |
7543 } | 7622 } |
7544 if ( v13 == 53 ) | 7623 if ( v20 == 1 ) |
7545 { | 7624 { |
7546 LOBYTE(pArcomageGame->stru1.field_8) = 37; | 7625 LOBYTE(pArcomageGame->stru1.field_8) = 37; |
7547 //goto LABEL_181; | 7626 //goto LABEL_181; |
7548 if ( wParam == 27 ) | 7627 if ( wParam == 27 ) |
7549 { | 7628 { |
7559 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) | 7638 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) |
7560 SendMessageA(hWnd, 0x111u, 0x68u, 0); | 7639 SendMessageA(hWnd, 0x111u, 0x68u, 0); |
7561 //goto _def_wnd_proc; | 7640 //goto _def_wnd_proc; |
7562 return DefWindowProcA(hWnd, Msg, wParam, lParam); | 7641 return DefWindowProcA(hWnd, Msg, wParam, lParam); |
7563 } | 7642 } |
7564 SendMessageA(hWnd, WM_COMMAND, 103, 0); | 7643 v38 = 0; |
7644 v37 = 103; | |
7645 //goto LABEL_126; | |
7646 v36 = 273; | |
7647 v35 = hWnd; | |
7648 SendMessageA(hWnd, WM_COMMAND, v37, v38); | |
7565 return 0; | 7649 return 0; |
7566 } | 7650 } |
7567 } | 7651 } |
7568 else | 7652 else |
7569 { | 7653 { |
7585 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) | 7669 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) |
7586 SendMessageA(hWnd, 0x111u, 0x68u, 0); | 7670 SendMessageA(hWnd, 0x111u, 0x68u, 0); |
7587 //goto _def_wnd_proc; | 7671 //goto _def_wnd_proc; |
7588 return DefWindowProcA(hWnd, Msg, wParam, lParam); | 7672 return DefWindowProcA(hWnd, Msg, wParam, lParam); |
7589 } | 7673 } |
7590 SendMessageA(hWnd, WM_COMMAND, 103, 0); | 7674 v38 = 0; |
7675 v37 = 103; | |
7676 //goto LABEL_126; | |
7677 v36 = 273; | |
7678 v35 = hWnd; | |
7679 SendMessageA(hWnd, WM_COMMAND, v37, v38); | |
7591 return 0; | 7680 return 0; |
7592 } | 7681 } |
7593 if ( v13 == 39 ) | 7682 v14 = v13 - 39; |
7683 if ( !v14 ) | |
7594 { | 7684 { |
7595 LOBYTE(pArcomageGame->stru1.field_8) = 34; | 7685 LOBYTE(pArcomageGame->stru1.field_8) = 34; |
7596 //goto LABEL_181; | 7686 //goto LABEL_181; |
7597 if ( wParam == 27 ) | 7687 if ( wParam == 27 ) |
7598 { | 7688 { |
7608 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) | 7698 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) |
7609 SendMessageA(hWnd, 0x111u, 0x68u, 0); | 7699 SendMessageA(hWnd, 0x111u, 0x68u, 0); |
7610 //goto _def_wnd_proc; | 7700 //goto _def_wnd_proc; |
7611 return DefWindowProcA(hWnd, Msg, wParam, lParam); | 7701 return DefWindowProcA(hWnd, Msg, wParam, lParam); |
7612 } | 7702 } |
7613 SendMessageA(hWnd, WM_COMMAND, 103, 0); | 7703 v38 = 0; |
7704 v37 = 103; | |
7705 //goto LABEL_126; | |
7706 v36 = 273; | |
7707 v35 = hWnd; | |
7708 SendMessageA(hWnd, WM_COMMAND, v37, v38); | |
7614 return 0; | 7709 return 0; |
7615 } | 7710 } |
7616 if ( v13 == 44 ) | 7711 v15 = v14 - 5; |
7712 if ( !v15 ) | |
7617 { | 7713 { |
7618 LOBYTE(pArcomageGame->stru1.field_8) = 60; | 7714 LOBYTE(pArcomageGame->stru1.field_8) = 60; |
7619 //goto LABEL_181; | 7715 //goto LABEL_181; |
7620 if ( wParam == 27 ) | 7716 if ( wParam == 27 ) |
7621 { | 7717 { |
7631 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) | 7727 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) |
7632 SendMessageA(hWnd, 0x111u, 0x68u, 0); | 7728 SendMessageA(hWnd, 0x111u, 0x68u, 0); |
7633 //goto _def_wnd_proc; | 7729 //goto _def_wnd_proc; |
7634 return DefWindowProcA(hWnd, Msg, wParam, lParam); | 7730 return DefWindowProcA(hWnd, Msg, wParam, lParam); |
7635 } | 7731 } |
7636 SendMessageA(hWnd, WM_COMMAND, 103, 0); | 7732 v38 = 0; |
7733 v37 = 103; | |
7734 //goto LABEL_126; | |
7735 v36 = 273; | |
7736 v35 = hWnd; | |
7737 SendMessageA(hWnd, WM_COMMAND, v37, v38); | |
7637 return 0; | 7738 return 0; |
7638 } | 7739 } |
7639 if ( v13 == 46 ) | 7740 v16 = v15 - 2; |
7741 if ( !v16 ) | |
7640 { | 7742 { |
7641 LOBYTE(pArcomageGame->stru1.field_8) = 62; | 7743 LOBYTE(pArcomageGame->stru1.field_8) = 62; |
7642 //goto LABEL_181; | 7744 //goto LABEL_181; |
7643 if ( wParam == 27 ) | 7745 if ( wParam == 27 ) |
7644 { | 7746 { |
7654 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) | 7756 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) |
7655 SendMessageA(hWnd, 0x111u, 0x68u, 0); | 7757 SendMessageA(hWnd, 0x111u, 0x68u, 0); |
7656 //goto _def_wnd_proc; | 7758 //goto _def_wnd_proc; |
7657 return DefWindowProcA(hWnd, Msg, wParam, lParam); | 7759 return DefWindowProcA(hWnd, Msg, wParam, lParam); |
7658 } | 7760 } |
7659 SendMessageA(hWnd, WM_COMMAND, 103, 0); | 7761 v38 = 0; |
7762 v37 = 103; | |
7763 //goto LABEL_126; | |
7764 v36 = 273; | |
7765 v35 = hWnd; | |
7766 SendMessageA(hWnd, WM_COMMAND, v37, v38); | |
7660 return 0; | 7767 return 0; |
7661 } | 7768 } |
7662 if ( v13 == 47 ) | 7769 v17 = v16 - 1; |
7770 if ( !v17 ) | |
7663 { | 7771 { |
7664 LOBYTE(pArcomageGame->stru1.field_8) = 63; | 7772 LOBYTE(pArcomageGame->stru1.field_8) = 63; |
7665 //goto LABEL_181; | 7773 //goto LABEL_181; |
7666 if ( wParam == 27 ) | 7774 if ( wParam == 27 ) |
7667 { | 7775 { |
7677 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) | 7785 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) |
7678 SendMessageA(hWnd, 0x111u, 0x68u, 0); | 7786 SendMessageA(hWnd, 0x111u, 0x68u, 0); |
7679 //goto _def_wnd_proc; | 7787 //goto _def_wnd_proc; |
7680 return DefWindowProcA(hWnd, Msg, wParam, lParam); | 7788 return DefWindowProcA(hWnd, Msg, wParam, lParam); |
7681 } | 7789 } |
7682 SendMessageA(hWnd, WM_COMMAND, 103, 0); | 7790 v38 = 0; |
7791 v37 = 103; | |
7792 //goto LABEL_126; | |
7793 v36 = 273; | |
7794 v35 = hWnd; | |
7795 SendMessageA(hWnd, WM_COMMAND, v37, v38); | |
7683 return 0; | 7796 return 0; |
7684 } | 7797 } |
7685 if ( v13 == 48 ) | 7798 if ( v17 == 1 ) |
7686 { | 7799 { |
7687 LOBYTE(pArcomageGame->stru1.field_8) = 41; | 7800 LOBYTE(pArcomageGame->stru1.field_8) = 41; |
7688 //LABEL_181: | 7801 //LABEL_181: |
7689 if ( wParam == 27 ) | 7802 if ( wParam == 27 ) |
7690 { | 7803 { |
7700 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) | 7813 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) |
7701 SendMessageA(hWnd, 0x111u, 0x68u, 0); | 7814 SendMessageA(hWnd, 0x111u, 0x68u, 0); |
7702 //goto _def_wnd_proc; | 7815 //goto _def_wnd_proc; |
7703 return DefWindowProcA(hWnd, Msg, wParam, lParam); | 7816 return DefWindowProcA(hWnd, Msg, wParam, lParam); |
7704 } | 7817 } |
7705 SendMessageA(hWnd, WM_COMMAND, 103, 0); | 7818 v38 = 0; |
7819 v37 = 103; | |
7820 //goto LABEL_126; | |
7821 v36 = 273; | |
7822 v35 = hWnd; | |
7823 SendMessageA(hWnd, WM_COMMAND, v37, v38); | |
7706 return 0; | 7824 return 0; |
7707 } | 7825 } |
7708 } | 7826 } |
7709 } | 7827 } |
7710 v27 = MapVirtualKeyA((unsigned __int16)wParam, 2u); | 7828 v27 = MapVirtualKeyA((unsigned __int16)wParam, 2u); |
7725 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) | 7843 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) |
7726 SendMessageA(hWnd, 0x111u, 0x68u, 0); | 7844 SendMessageA(hWnd, 0x111u, 0x68u, 0); |
7727 //goto _def_wnd_proc; | 7845 //goto _def_wnd_proc; |
7728 return DefWindowProcA(hWnd, Msg, wParam, lParam); | 7846 return DefWindowProcA(hWnd, Msg, wParam, lParam); |
7729 } | 7847 } |
7730 SendMessageA(hWnd, WM_COMMAND, 103, 0); | 7848 v38 = 0; |
7849 v37 = 103; | |
7850 //goto LABEL_126; | |
7851 v36 = 273; | |
7852 v35 = hWnd; | |
7853 SendMessageA(hWnd, WM_COMMAND, v37, v38); | |
7731 return 0; | 7854 return 0; |
7732 } | 7855 } |
7733 if ( Msg == WM_ACTIVATEAPP ) | 7856 if ( Msg == WM_ACTIVATEAPP ) |
7734 { | 7857 { |
7735 if ( wParam && (GetForegroundWindow() == hWnd || GetForegroundWindow() == hInsertCDWindow) ) | 7858 if ( wParam && (GetForegroundWindow() == hWnd || GetForegroundWindow() == hInsertCDWindow) ) |
8915 dword_6BE364_game_settings_1 |= 0x4000; | 9038 dword_6BE364_game_settings_1 |= 0x4000; |
8916 | 9039 |
8917 switch ( uTurnSpeed ) | 9040 switch ( uTurnSpeed ) |
8918 { | 9041 { |
8919 case 0: // undefined turn option | 9042 case 0: // undefined turn option |
8920 __debugbreak(); // really shouldn't use this mode | 9043 //__debugbreak(); // really shouldn't use this mode |
8921 uTurnSpeed = (unsigned int)uCPUSpeed < 199 ? 128 : 64; // adjust turn speed to estimated fps | 9044 uTurnSpeed = (unsigned int)uCPUSpeed < 199 ? 128 : 64; // adjust turn speed to estimated fps |
8922 break; | 9045 break; |
8923 | 9046 |
8924 case 1u: // 16x | 9047 case 1u: // 16x |
8925 Log::Warning(L"x16 Turn Speed"); // really shouldn't use this mode | 9048 Log::Warning(L"x16 Turn Speed"); // really shouldn't use this mode |