Mercurial > mm7
comparison mm7_1.cpp @ 306:e33f5a1cdc46
Food status
author | Nomad |
---|---|
date | Tue, 19 Feb 2013 22:06:49 +0200 |
parents | cc8e4dc397ec |
children | 53b9b07ab9ec 2a09e1d6fc8f |
comparison
equal
deleted
inserted
replaced
305:cc8e4dc397ec | 306:e33f5a1cdc46 |
---|---|
2395 | 2395 |
2396 v1 = ecx0; | 2396 v1 = ecx0; |
2397 _this = ecx0; | 2397 _this = ecx0; |
2398 var88 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu); | 2398 var88 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu); |
2399 v82 = pFontComic; | 2399 v82 = pFontComic; |
2400 if ( v1->uItemID ) | 2400 if (!v1->uItemID) |
2401 { | 2401 return; |
2402 | |
2402 v79.Hint = 0; | 2403 v79.Hint = 0; |
2403 v79.uFrameWidth = 384; | 2404 v79.uFrameWidth = 384; |
2404 v79.uFrameHeight = 180; | 2405 v79.uFrameHeight = 180; |
2405 v79.uFrameY = 40; | 2406 v79.uFrameY = 40; |
2406 if ( pMouse->GetCursorPos(&a2)->x <= 320 ) | 2407 if ( pMouse->GetCursorPos(&a2)->x <= 320 ) |
2782 v50 = pGlobalTXT_LocalizationStrings[210]; | 2783 v50 = pGlobalTXT_LocalizationStrings[210]; |
2783 v46 = "%s: %s"; | 2784 v46 = "%s: %s"; |
2784 } | 2785 } |
2785 sprintf(v64, v46, v50, v55, v60); | 2786 sprintf(v64, v46, v50, v55, v60); |
2786 goto LABEL_65; | 2787 goto LABEL_65; |
2787 } | |
2788 } | 2788 } |
2789 // 4E455C: using guessed type int dword_4E455C; | 2789 // 4E455C: using guessed type int dword_4E455C; |
2790 // 506128: using guessed type int areWeLoadingTexture; | 2790 // 506128: using guessed type int areWeLoadingTexture; |
2791 | 2791 |
2792 //----- (0041E360) -------------------------------------------------------- | 2792 //----- (0041E360) -------------------------------------------------------- |
3090 pDesc.dwSize = 124; | 3090 pDesc.dwSize = 124; |
3091 if ( pRenderer->LockSurface_DDraw4((IDirectDrawSurface4 *)v222, &pDesc, DDLOCK_WAIT) ) | 3091 if ( pRenderer->LockSurface_DDraw4((IDirectDrawSurface4 *)v222, &pDesc, DDLOCK_WAIT) ) |
3092 { | 3092 { |
3093 v108 = (unsigned __int16 *)pDesc.lpSurface; | 3093 v108 = (unsigned __int16 *)pDesc.lpSurface; |
3094 a2 = (Player *)v124; | 3094 a2 = (Player *)v124; |
3095 if ( v124 < v119 ) | 3095 if ( v124 < v119 ) |
3096 { | 3096 { |
3097 v109 = 2 * pRenderer->uTargetSurfacePitch; | 3097 v109 = 2 * pRenderer->uTargetSurfacePitch; |
3098 v29 = (int)a4; | 3098 v29 = (int)a4; |
3099 v30 = (char *)&pRenderer->pTargetSurface[(int)&a4[v124 * pRenderer->uTargetSurfacePitch]]; | 3099 v30 = (char *)&pRenderer->pTargetSurface[(int)&a4[v124 * pRenderer->uTargetSurfacePitch]]; |
3100 v31 = i - v124; | 3100 v31 = i - v124; |