comparison mm7_2.cpp @ 1248:d3bf0d4fb753

aWinProc cleanup - fixing bad condition, exctracting common code from conditions, part 1
author Grumpy7
date Mon, 10 Jun 2013 03:41:30 +0200
parents 68655becb94b
children bbde4964e9b7
comparison
equal deleted inserted replaced
1244:6279bf7a4d1a 1248:d3bf0d4fb753
6072 } 6072 }
6073 } 6073 }
6074 if ( pCurrentScreen != SCREEN_GAME && pCurrentScreen != SCREEN_PRESS_ESCAPE_MESSAGE ) 6074 if ( pCurrentScreen != SCREEN_GAME && pCurrentScreen != SCREEN_PRESS_ESCAPE_MESSAGE )
6075 return 0; 6075 return 0;
6076 } 6076 }
6077
6077 pArcomageGame->stru1.field_0 = 1; 6078 pArcomageGame->stru1.field_0 = 1;
6078 if ( (unsigned __int16)GetAsyncKeyState(VK_SHIFT) >> 8 >= 0 ) 6079 if ( GetAsyncKeyState(VK_SHIFT) & 32768 ) // originally (char)((unsigned __int16)GetAsyncKeyState(VK_SHIFT) >> 8) >= 0
6079 v27 = MapVirtualKeyA((unsigned __int16)wParam, 2u); 6080 v27 = MapVirtualKeyA((unsigned __int16)wParam, 2u);
6080 else 6081 else
6081 { 6082 {
6082 v13 = (unsigned __int16)MapVirtualKeyA((unsigned __int16)wParam, 2u); 6083 v13 = (unsigned __int16)MapVirtualKeyA((unsigned __int16)wParam, 2u);
6083 if ( (signed int)(unsigned __int16)v13 > 54 ) 6084 bool valSet = false;
6084 { 6085 if ( v13 == 91 )
6085 if ( v13 > 61 ) 6086 {
6086 { 6087 LOBYTE(pArcomageGame->stru1.field_8) = 123;
6087 if ( v13 == 91 ) 6088 valSet = true;
6088 { 6089 }
6089 LOBYTE(pArcomageGame->stru1.field_8) = 123; 6090 if ( v13 == 92 )
6090 //goto LABEL_181; 6091 {
6091 if ( wParam == 27 ) 6092 LOBYTE(pArcomageGame->stru1.field_8) = 124;
6092 { 6093 valSet = true;
6093 pArcomageGame->GameOver = 1; 6094 }
6094 pArcomageGame->field_F4 = 1; 6095 if ( v13 == 93 )
6095 pArcomageGame->uGameResult = 2; 6096 {
6096 pArcomageGame->field_B0 = -2; 6097 LOBYTE(pArcomageGame->stru1.field_8) = 125;
6097 //goto _def_wnd_proc; 6098 valSet = true;
6098 return DefWindowProcA(hWnd, Msg, wParam, lParam); 6099 }
6099 } 6100 if ( v13 == 96 )
6100 if ( wParam != 114 ) 6101 {
6101 { 6102 LOBYTE(pArcomageGame->stru1.field_8) = 126;
6102 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) 6103 valSet = true;
6103 SendMessageA(hWnd, 0x111u, 0x68u, 0); 6104 }
6104 //goto _def_wnd_proc; 6105 if ( v13 == 61 )
6105 return DefWindowProcA(hWnd, Msg, wParam, lParam); 6106 {
6106 } 6107 LOBYTE(pArcomageGame->stru1.field_8) = 43;
6107 SendMessageA(hWnd, WM_COMMAND, 103, 0); 6108 valSet = false;
6108 return 0; 6109 }
6109 } 6110 if ( v13 == 55 )
6110 if ( v13 == 92 ) 6111 {
6111 { 6112 LOBYTE(pArcomageGame->stru1.field_8) = 38;
6112 LOBYTE(pArcomageGame->stru1.field_8) = 124; 6113 valSet = false;
6113 //goto LABEL_181; 6114 }
6114 if ( wParam == 27 ) 6115 if ( v13 == 56 )
6115 { 6116 {
6116 pArcomageGame->GameOver = 1; 6117 LOBYTE(pArcomageGame->stru1.field_8) = 42;
6117 pArcomageGame->field_F4 = 1; 6118 valSet = false;
6118 pArcomageGame->uGameResult = 2; 6119 }
6119 pArcomageGame->field_B0 = -2; 6120 if ( v13 == 57 )
6120 //goto _def_wnd_proc; 6121 {
6121 return DefWindowProcA(hWnd, Msg, wParam, lParam); 6122 LOBYTE(pArcomageGame->stru1.field_8) = 40;
6122 } 6123 valSet = false;
6123 if ( wParam != 114 ) 6124 }
6124 { 6125 if ( v13 == 59 )
6125 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) 6126 {
6126 SendMessageA(hWnd, 0x111u, 0x68u, 0); 6127 LOBYTE(pArcomageGame->stru1.field_8) = 58;
6127 //goto _def_wnd_proc; 6128 valSet = false;
6128 return DefWindowProcA(hWnd, Msg, wParam, lParam); 6129 }
6129 } 6130 if ( v13 == 54 )
6130 SendMessageA(hWnd, WM_COMMAND, 103, 0); 6131 {
6131 return 0; 6132 LOBYTE(pArcomageGame->stru1.field_8) = 94;
6132 } 6133 valSet = true;
6133 if ( v13 == 93 ) 6134 }
6134 { 6135 if ( v13 == 50 )
6135 LOBYTE(pArcomageGame->stru1.field_8) = 125; 6136 {
6136 //goto LABEL_181; 6137 LOBYTE(pArcomageGame->stru1.field_8) = 64;
6137 if ( wParam == 27 ) 6138 valSet = true;
6138 { 6139 }
6139 pArcomageGame->GameOver = 1; 6140 if ( v13 == 51 )
6140 pArcomageGame->field_F4 = 1; 6141 {
6141 pArcomageGame->uGameResult = 2; 6142 LOBYTE(pArcomageGame->stru1.field_8) = 35;
6142 pArcomageGame->field_B0 = -2; 6143 valSet = true;
6143 //goto _def_wnd_proc; 6144 }
6144 return DefWindowProcA(hWnd, Msg, wParam, lParam); 6145 if ( v13 == 52 )
6145 } 6146 {
6146 if ( wParam != 114 ) 6147 LOBYTE(pArcomageGame->stru1.field_8) = 36;
6147 { 6148 valSet = true;
6148 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) 6149 }
6149 SendMessageA(hWnd, 0x111u, 0x68u, 0); 6150 if ( v13 == 53 )
6150 //goto _def_wnd_proc; 6151 {
6151 return DefWindowProcA(hWnd, Msg, wParam, lParam); 6152 LOBYTE(pArcomageGame->stru1.field_8) = 37;
6152 } 6153 valSet = true;
6153 SendMessageA(hWnd, WM_COMMAND, 103, 0); 6154 }
6154 return 0; 6155 if ( v13 == 49 )
6155 } 6156 {
6156 if ( v13 == 96 ) 6157 LOBYTE(pArcomageGame->stru1.field_8) = 33;
6157 { 6158 valSet = true;
6158 LOBYTE(pArcomageGame->stru1.field_8) = 126; 6159 }
6159 //goto LABEL_181; 6160 if ( v13 == 39 )
6160 if ( wParam == 27 ) 6161 {
6161 { 6162 LOBYTE(pArcomageGame->stru1.field_8) = 34;
6162 pArcomageGame->GameOver = 1; 6163 valSet = true;
6163 pArcomageGame->field_F4 = 1; 6164 }
6164 pArcomageGame->uGameResult = 2; 6165 if ( v13 == 44 )
6165 pArcomageGame->field_B0 = -2; 6166 {
6166 //goto _def_wnd_proc; 6167 LOBYTE(pArcomageGame->stru1.field_8) = 60;
6167 return DefWindowProcA(hWnd, Msg, wParam, lParam); 6168 valSet = true;
6168 } 6169 }
6169 if ( wParam != 114 ) 6170 if ( v13 == 46 )
6170 { 6171 {
6171 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) 6172 LOBYTE(pArcomageGame->stru1.field_8) = 62;
6172 SendMessageA(hWnd, 0x111u, 0x68u, 0); 6173 valSet = true;
6173 //goto _def_wnd_proc; 6174 }
6174 return DefWindowProcA(hWnd, Msg, wParam, lParam); 6175 if ( v13 == 47 )
6175 } 6176 {
6176 SendMessageA(hWnd, WM_COMMAND, 103, 0); 6177 LOBYTE(pArcomageGame->stru1.field_8) = 63;
6177 return 0; 6178 valSet = true;
6178 } 6179 }
6179 } 6180 if ( v13 == 48 )
6180 else 6181 {
6181 { 6182 LOBYTE(pArcomageGame->stru1.field_8) = 41;
6182 if ( v13 == 61 ) 6183 valSet = true;
6183 { 6184 }
6184 LOBYTE(pArcomageGame->stru1.field_8) = 43; 6185 if (valSet)
6185 //goto LABEL_181; 6186 {
6186 if ( wParam == 27 ) 6187 if ( wParam == 27 )
6187 { 6188 {
6188 pArcomageGame->GameOver = 1; 6189 pArcomageGame->GameOver = 1;
6189 pArcomageGame->field_F4 = 1; 6190 pArcomageGame->field_F4 = 1;
6190 pArcomageGame->uGameResult = 2; 6191 pArcomageGame->uGameResult = 2;
6191 pArcomageGame->field_B0 = -2; 6192 pArcomageGame->field_B0 = -2;
6192 //goto _def_wnd_proc; 6193 //goto _def_wnd_proc;
6193 return DefWindowProcA(hWnd, Msg, wParam, lParam); 6194 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6194 } 6195 }
6195 if ( wParam != 114 ) 6196 if ( wParam != 114 )
6196 { 6197 {
6197 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() ) 6198 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() )
6198 SendMessageA(hWnd, 0x111u, 0x68u, 0); 6199 SendMessageA(hWnd, 0x111u, 0x68u, 0);
6199 //goto _def_wnd_proc; 6200 //goto _def_wnd_proc;
6200 return DefWindowProcA(hWnd, Msg, wParam, lParam); 6201 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6201 } 6202 }
6202 SendMessageA(hWnd, WM_COMMAND, 103, 0); 6203 SendMessageA(hWnd, WM_COMMAND, 103, 0);
6203 return 0; 6204 return 0;
6204 } 6205 }
6205 if ( v13 == 55 ) 6206 }
6206 { 6207 v27 = MapVirtualKeyA((unsigned __int16)wParam, 2u);
6207 LOBYTE(pArcomageGame->stru1.field_8) = 38;
6208 //goto LABEL_181;
6209 if ( wParam == 27 )
6210 {
6211 pArcomageGame->GameOver = 1;
6212 pArcomageGame->field_F4 = 1;
6213 pArcomageGame->uGameResult = 2;
6214 pArcomageGame->field_B0 = -2;
6215 //goto _def_wnd_proc;
6216 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6217 }
6218 if ( wParam != 114 )
6219 {
6220 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() )
6221 SendMessageA(hWnd, 0x111u, 0x68u, 0);
6222 //goto _def_wnd_proc;
6223 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6224 }
6225 SendMessageA(hWnd, WM_COMMAND, 103, 0);
6226 return 0;
6227 }
6228 if ( v13 == 56 )
6229 {
6230 LOBYTE(pArcomageGame->stru1.field_8) = 42;
6231 //goto LABEL_181;
6232 if ( wParam == 27 )
6233 {
6234 pArcomageGame->GameOver = 1;
6235 pArcomageGame->field_F4 = 1;
6236 pArcomageGame->uGameResult = 2;
6237 pArcomageGame->field_B0 = -2;
6238 //goto _def_wnd_proc;
6239 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6240 }
6241 if ( wParam != 114 )
6242 {
6243 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() )
6244 SendMessageA(hWnd, 0x111u, 0x68u, 0);
6245 //goto _def_wnd_proc;
6246 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6247 }
6248 SendMessageA(hWnd, WM_COMMAND, 103, 0);
6249 return 0;
6250 }
6251 if ( v13 == 57 )
6252 {
6253 LOBYTE(pArcomageGame->stru1.field_8) = 40;
6254 //goto LABEL_181;
6255 if ( wParam == 27 )
6256 {
6257 pArcomageGame->GameOver = 1;
6258 pArcomageGame->field_F4 = 1;
6259 pArcomageGame->uGameResult = 2;
6260 pArcomageGame->field_B0 = -2;
6261 //goto _def_wnd_proc;
6262 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6263 }
6264 if ( wParam != 114 )
6265 {
6266 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() )
6267 SendMessageA(hWnd, 0x111u, 0x68u, 0);
6268 //goto _def_wnd_proc;
6269 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6270 }
6271 SendMessageA(hWnd, WM_COMMAND, 103, 0);
6272 return 0;
6273 }
6274 if ( v13 == 59 )
6275 {
6276 LOBYTE(pArcomageGame->stru1.field_8) = 58;
6277 //goto LABEL_181;
6278 if ( wParam == 27 )
6279 {
6280 pArcomageGame->GameOver = 1;
6281 pArcomageGame->field_F4 = 1;
6282 pArcomageGame->uGameResult = 2;
6283 pArcomageGame->field_B0 = -2;
6284 //goto _def_wnd_proc;
6285 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6286 }
6287 if ( wParam != 114 )
6288 {
6289 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() )
6290 SendMessageA(hWnd, 0x111u, 0x68u, 0);
6291 //goto _def_wnd_proc;
6292 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6293 }
6294 SendMessageA(hWnd, WM_COMMAND, 103, 0);
6295 return 0;
6296 }
6297 }
6298 }
6299 else
6300 {
6301 if ( (unsigned __int16)v13 == 54 )
6302 {
6303 LOBYTE(pArcomageGame->stru1.field_8) = 94;
6304 //goto LABEL_181;
6305 if ( wParam == 27 )
6306 {
6307 pArcomageGame->GameOver = 1;
6308 pArcomageGame->field_F4 = 1;
6309 pArcomageGame->uGameResult = 2;
6310 pArcomageGame->field_B0 = -2;
6311 //goto _def_wnd_proc;
6312 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6313 }
6314 if ( wParam != 114 )
6315 {
6316 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() )
6317 SendMessageA(hWnd, 0x111u, 0x68u, 0);
6318 //goto _def_wnd_proc;
6319 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6320 }
6321 SendMessageA(hWnd, WM_COMMAND, 103, 0);
6322 return 0;
6323 }
6324 if ( v13 > 49 )
6325 {
6326 if ( v13 == 50 )
6327 {
6328 LOBYTE(pArcomageGame->stru1.field_8) = 64;
6329 //goto LABEL_181;
6330 if ( wParam == 27 )
6331 {
6332 pArcomageGame->GameOver = 1;
6333 pArcomageGame->field_F4 = 1;
6334 pArcomageGame->uGameResult = 2;
6335 pArcomageGame->field_B0 = -2;
6336 //goto _def_wnd_proc;
6337 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6338 }
6339 if ( wParam != 114 )
6340 {
6341 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() )
6342 SendMessageA(hWnd, 0x111u, 0x68u, 0);
6343 //goto _def_wnd_proc;
6344 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6345 }
6346 SendMessageA(hWnd, WM_COMMAND, 103, 0);
6347 return 0;
6348 }
6349 if ( v13 == 51 )
6350 {
6351 LOBYTE(pArcomageGame->stru1.field_8) = 35;
6352 //goto LABEL_181;
6353 if ( wParam == 27 )
6354 {
6355 pArcomageGame->GameOver = 1;
6356 pArcomageGame->field_F4 = 1;
6357 pArcomageGame->uGameResult = 2;
6358 pArcomageGame->field_B0 = -2;
6359 //goto _def_wnd_proc;
6360 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6361 }
6362 if ( wParam != 114 )
6363 {
6364 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() )
6365 SendMessageA(hWnd, 0x111u, 0x68u, 0);
6366 //goto _def_wnd_proc;
6367 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6368 }
6369 SendMessageA(hWnd, WM_COMMAND, 103, 0);
6370 return 0;
6371 }
6372 if ( v13 == 52 )
6373 {
6374 LOBYTE(pArcomageGame->stru1.field_8) = 36;
6375 //goto LABEL_181;
6376 if ( wParam == 27 )
6377 {
6378 pArcomageGame->GameOver = 1;
6379 pArcomageGame->field_F4 = 1;
6380 pArcomageGame->uGameResult = 2;
6381 pArcomageGame->field_B0 = -2;
6382 //goto _def_wnd_proc;
6383 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6384 }
6385 if ( wParam != 114 )
6386 {
6387 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() )
6388 SendMessageA(hWnd, 0x111u, 0x68u, 0);
6389 //goto _def_wnd_proc;
6390 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6391 }
6392 SendMessageA(hWnd, WM_COMMAND, 103, 0);
6393 return 0;
6394 }
6395 if ( v13 == 53 )
6396 {
6397 LOBYTE(pArcomageGame->stru1.field_8) = 37;
6398 //goto LABEL_181;
6399 if ( wParam == 27 )
6400 {
6401 pArcomageGame->GameOver = 1;
6402 pArcomageGame->field_F4 = 1;
6403 pArcomageGame->uGameResult = 2;
6404 pArcomageGame->field_B0 = -2;
6405 //goto _def_wnd_proc;
6406 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6407 }
6408 if ( wParam != 114 )
6409 {
6410 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() )
6411 SendMessageA(hWnd, 0x111u, 0x68u, 0);
6412 //goto _def_wnd_proc;
6413 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6414 }
6415 SendMessageA(hWnd, WM_COMMAND, 103, 0);
6416 return 0;
6417 }
6418 }
6419 else
6420 {
6421 if ( v13 == 49 )
6422 {
6423 LOBYTE(pArcomageGame->stru1.field_8) = 33;
6424 //goto LABEL_181;
6425 if ( wParam == 27 )
6426 {
6427 pArcomageGame->GameOver = 1;
6428 pArcomageGame->field_F4 = 1;
6429 pArcomageGame->uGameResult = 2;
6430 pArcomageGame->field_B0 = -2;
6431 //goto _def_wnd_proc;
6432 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6433 }
6434 if ( wParam != 114 )
6435 {
6436 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() )
6437 SendMessageA(hWnd, 0x111u, 0x68u, 0);
6438 //goto _def_wnd_proc;
6439 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6440 }
6441 SendMessageA(hWnd, WM_COMMAND, 103, 0);
6442 return 0;
6443 }
6444 if ( v13 == 39 )
6445 {
6446 LOBYTE(pArcomageGame->stru1.field_8) = 34;
6447 //goto LABEL_181;
6448 if ( wParam == 27 )
6449 {
6450 pArcomageGame->GameOver = 1;
6451 pArcomageGame->field_F4 = 1;
6452 pArcomageGame->uGameResult = 2;
6453 pArcomageGame->field_B0 = -2;
6454 //goto _def_wnd_proc;
6455 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6456 }
6457 if ( wParam != 114 )
6458 {
6459 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() )
6460 SendMessageA(hWnd, 0x111u, 0x68u, 0);
6461 //goto _def_wnd_proc;
6462 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6463 }
6464 SendMessageA(hWnd, WM_COMMAND, 103, 0);
6465 return 0;
6466 }
6467 if ( v13 == 44 )
6468 {
6469 LOBYTE(pArcomageGame->stru1.field_8) = 60;
6470 //goto LABEL_181;
6471 if ( wParam == 27 )
6472 {
6473 pArcomageGame->GameOver = 1;
6474 pArcomageGame->field_F4 = 1;
6475 pArcomageGame->uGameResult = 2;
6476 pArcomageGame->field_B0 = -2;
6477 //goto _def_wnd_proc;
6478 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6479 }
6480 if ( wParam != 114 )
6481 {
6482 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() )
6483 SendMessageA(hWnd, 0x111u, 0x68u, 0);
6484 //goto _def_wnd_proc;
6485 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6486 }
6487 SendMessageA(hWnd, WM_COMMAND, 103, 0);
6488 return 0;
6489 }
6490 if ( v13 == 46 )
6491 {
6492 LOBYTE(pArcomageGame->stru1.field_8) = 62;
6493 //goto LABEL_181;
6494 if ( wParam == 27 )
6495 {
6496 pArcomageGame->GameOver = 1;
6497 pArcomageGame->field_F4 = 1;
6498 pArcomageGame->uGameResult = 2;
6499 pArcomageGame->field_B0 = -2;
6500 //goto _def_wnd_proc;
6501 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6502 }
6503 if ( wParam != 114 )
6504 {
6505 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() )
6506 SendMessageA(hWnd, 0x111u, 0x68u, 0);
6507 //goto _def_wnd_proc;
6508 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6509 }
6510 SendMessageA(hWnd, WM_COMMAND, 103, 0);
6511 return 0;
6512 }
6513 if ( v13 == 47 )
6514 {
6515 LOBYTE(pArcomageGame->stru1.field_8) = 63;
6516 //goto LABEL_181;
6517 if ( wParam == 27 )
6518 {
6519 pArcomageGame->GameOver = 1;
6520 pArcomageGame->field_F4 = 1;
6521 pArcomageGame->uGameResult = 2;
6522 pArcomageGame->field_B0 = -2;
6523 //goto _def_wnd_proc;
6524 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6525 }
6526 if ( wParam != 114 )
6527 {
6528 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() )
6529 SendMessageA(hWnd, 0x111u, 0x68u, 0);
6530 //goto _def_wnd_proc;
6531 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6532 }
6533 SendMessageA(hWnd, WM_COMMAND, 103, 0);
6534 return 0;
6535 }
6536 if ( v13 == 48 )
6537 {
6538 LOBYTE(pArcomageGame->stru1.field_8) = 41;
6539 //LABEL_181:
6540 if ( wParam == 27 )
6541 {
6542 pArcomageGame->GameOver = 1;
6543 pArcomageGame->field_F4 = 1;
6544 pArcomageGame->uGameResult = 2;
6545 pArcomageGame->field_B0 = -2;
6546 //goto _def_wnd_proc;
6547 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6548 }
6549 if ( wParam != 114 )
6550 {
6551 if ( wParam == 115 && !pVideoPlayer->AnyMovieLoaded() )
6552 SendMessageA(hWnd, 0x111u, 0x68u, 0);
6553 //goto _def_wnd_proc;
6554 return DefWindowProcA(hWnd, Msg, wParam, lParam);
6555 }
6556 SendMessageA(hWnd, WM_COMMAND, 103, 0);
6557 return 0;
6558 }
6559 }
6560 }
6561 v27 = MapVirtualKeyA((unsigned __int16)wParam, 2u);
6562 }
6563 LOBYTE(pArcomageGame->stru1.field_8) = v27; 6208 LOBYTE(pArcomageGame->stru1.field_8) = v27;
6564 //goto LABEL_181; 6209 //goto LABEL_181;
6565 if ( wParam == 27 ) 6210 if ( wParam == 27 )
6566 { 6211 {
6567 pArcomageGame->GameOver = 1; 6212 pArcomageGame->GameOver = 1;