Mercurial > mm7
comparison mm7_2.cpp @ 1113:39eaa6b00141
something to bool cast (performance warning) mostly fixed
author | Grumpy7 |
---|---|
date | Tue, 28 May 2013 00:19:45 +0200 |
parents | 5d5c78088274 |
children | aa706cde7fda 8a965c8faf05 |
comparison
equal
deleted
inserted
replaced
1112:4994eb3947ae | 1113:39eaa6b00141 |
---|---|
7051 } | 7051 } |
7052 pArcomageGame->stru1.field_0 = 4; | 7052 pArcomageGame->stru1.field_0 = 4; |
7053 v29 = 0; | 7053 v29 = 0; |
7054 //goto LABEL_262; | 7054 //goto LABEL_262; |
7055 v30 = 1; | 7055 v30 = 1; |
7056 ArcomageGame::OnMouseClick(v30, v29); | 7056 ArcomageGame::OnMouseClick(v30, v29 != 0); |
7057 return DefWindowProcA(hWnd, Msg, wParam, lParam); | 7057 return DefWindowProcA(hWnd, Msg, wParam, lParam); |
7058 | 7058 |
7059 case WM_LBUTTONDBLCLK: | 7059 case WM_LBUTTONDBLCLK: |
7060 if ( pArcomageGame->bGameInProgress ) | 7060 if ( pArcomageGame->bGameInProgress ) |
7061 { | 7061 { |
7127 pXY[0] = (unsigned __int16)lParam; | 7127 pXY[0] = (unsigned __int16)lParam; |
7128 pXY[1] = lParam >> 16; | 7128 pXY[1] = lParam >> 16; |
7129 ArcomageGame::OnMouseMove((POINT *)pXY); | 7129 ArcomageGame::OnMouseMove((POINT *)pXY); |
7130 ArcomageGame::OnMouseClick(0, wParam & 1); | 7130 ArcomageGame::OnMouseClick(0, wParam & 1); |
7131 v29 = (wParam >> 1) & 1; | 7131 v29 = (wParam >> 1) & 1; |
7132 ArcomageGame::OnMouseClick(1, v29); | 7132 ArcomageGame::OnMouseClick(1, v29 != 0); |
7133 } | 7133 } |
7134 else | 7134 else |
7135 { | 7135 { |
7136 pMouse->SetMouseClick((unsigned __int16)lParam, lParam >> 16); | 7136 pMouse->SetMouseClick((unsigned __int16)lParam, lParam >> 16); |
7137 } | 7137 } |