Mercurial > mm7
comparison mm7_2.cpp @ 922:d4ca429eecd4
Some debug functions implemented.
author | Nomad |
---|---|
date | Wed, 01 May 2013 11:39:41 +0200 |
parents | 34ed2d5e7cfb |
children | 851697c5c2f2 |
comparison
equal
deleted
inserted
replaced
921:3696848c0413 | 922:d4ca429eecd4 |
---|---|
6823 { | 6823 { |
6824 if (!pKeyActionMap->_459F10(wParam) && !viewparams->field_4C) | 6824 if (!pKeyActionMap->_459F10(wParam) && !viewparams->field_4C) |
6825 GUI_HandleHotkey(wParam); | 6825 GUI_HandleHotkey(wParam); |
6826 } | 6826 } |
6827 return DefWindowProcA(hWnd, Msg, wParam, lParam); | 6827 return DefWindowProcA(hWnd, Msg, wParam, lParam); |
6828 | |
6829 case WM_COMMAND: | |
6830 { | |
6831 switch (wParam) | |
6832 { | |
6833 case 101: | |
6834 case 40001: | |
6835 { | |
6836 v38 = 0; | |
6837 v37 = 0; | |
6838 v36 = 2; | |
6839 v35 = ::hWnd; | |
6840 SendMessageA(::hWnd, WM_DESTROY, v37, v38); | |
6841 } | |
6842 return 0; | |
6843 | |
6844 case 103: | |
6845 pRenderer->SavePCXScreenshot(); | |
6846 return 0; | |
6847 | |
6848 case 104: | |
6849 pRenderer->ChangeBetweenWinFullscreenModes(); | |
6850 if ( pArcomageGame->bGameInProgress ) | |
6851 pArcomageGame->field_F6 = 1; | |
6852 return 0; | |
6853 | |
6854 case 40007: | |
6855 pParty->SetGold(pParty->uNumGold + 10000); | |
6856 return 0; | |
6857 | |
6858 case 40008: | |
6859 GivePartyExp(20000); | |
6860 return 0; | |
6861 | |
6862 case 40013: | |
6863 pParty->SetGold(0); | |
6864 return 0; | |
6865 | |
6866 case 40059: | |
6867 for (uint i = 0; i < 4; ++i) | |
6868 pParty->pPlayers[i].uSkillPoints = 50; | |
6869 return 0; | |
6870 } | |
6871 } | |
6872 return DefWindowProcA(hWnd, Msg, wParam, lParam); | |
6828 }; | 6873 }; |
6829 | |
6830 | 6874 |
6831 if ( Msg > WM_SYSCOMMAND ) | 6875 if ( Msg > WM_SYSCOMMAND ) |
6832 { | 6876 { |
6833 switch ( Msg ) | 6877 switch ( Msg ) |
6834 { | 6878 { |
7065 return DefWindowProcA(hWnd, Msg, wParam, lParam); | 7109 return DefWindowProcA(hWnd, Msg, wParam, lParam); |
7066 } | 7110 } |
7067 //goto _def_wnd_proc; | 7111 //goto _def_wnd_proc; |
7068 return DefWindowProcA(hWnd, Msg, wParam, lParam); | 7112 return DefWindowProcA(hWnd, Msg, wParam, lParam); |
7069 } | 7113 } |
7070 if ( Msg != WM_COMMAND ) | |
7071 //goto _def_wnd_proc; | |
7072 return DefWindowProcA(hWnd, Msg, wParam, lParam); | 7114 return DefWindowProcA(hWnd, Msg, wParam, lParam); |
7073 if ( wParam != 101 ) | |
7074 { | |
7075 if ( wParam == 103 ) | |
7076 { | |
7077 pRenderer->SavePCXScreenshot(); | |
7078 return 0; | |
7079 } | |
7080 if ( wParam == 104 ) | |
7081 { | |
7082 pRenderer->ChangeBetweenWinFullscreenModes(); | |
7083 if ( pArcomageGame->bGameInProgress ) | |
7084 pArcomageGame->field_F6 = 1; | |
7085 return 0; | |
7086 } | |
7087 if ( wParam != 40001 ) | |
7088 return DefWindowProcA(hWnd, Msg, wParam, lParam); | |
7089 } | |
7090 v38 = 0; | |
7091 v37 = 0; | |
7092 v36 = 2; | |
7093 v35 = ::hWnd; | |
7094 //LABEL_104: | |
7095 SendMessageA(::hWnd, WM_DESTROY, v37, v38); | |
7096 return 0; | |
7097 } | 7115 } |
7098 if ( dword_506E68 != -1 ) | 7116 if ( dword_506E68 != -1 ) |
7099 { | 7117 { |
7100 pKeyActionMap->_459F10(wParam); | 7118 pKeyActionMap->_459F10(wParam); |
7101 return DefWindowProcA(hWnd, Msg, wParam, lParam); | 7119 return DefWindowProcA(hWnd, Msg, wParam, lParam); |