# HG changeset patch
# User Ritor1
# Date 1401690688 -21600
# Node ID 6eb63623cbe87b432b56bf9ac1349db15d9cec77
# Parent 802460e60eee89e8968935b27bc5069148e8537a# Parent bcd7fadbf7d2d8be25b7006285ce5b6422c09509
Слияние
diff -r 802460e60eee -r 6eb63623cbe8 Build/Visual Studio 2010/World of Might and Magic.vcxproj
--- a/Build/Visual Studio 2010/World of Might and Magic.vcxproj Sun Jun 01 18:37:09 2014 +0600
+++ b/Build/Visual Studio 2010/World of Might and Magic.vcxproj Mon Jun 02 12:31:28 2014 +0600
@@ -198,6 +198,7 @@
+
@@ -208,6 +209,7 @@
true
+
@@ -244,6 +246,7 @@
+
@@ -268,6 +271,7 @@
+
@@ -451,6 +455,7 @@
+
@@ -481,6 +486,7 @@
+
@@ -500,6 +506,7 @@
+
diff -r 802460e60eee -r 6eb63623cbe8 Build/Visual Studio 2010/World of Might and Magic.vcxproj.filters
--- a/Build/Visual Studio 2010/World of Might and Magic.vcxproj.filters Sun Jun 01 18:37:09 2014 +0600
+++ b/Build/Visual Studio 2010/World of Might and Magic.vcxproj.filters Mon Jun 02 12:31:28 2014 +0600
@@ -527,6 +527,9 @@
+
+
+
@@ -631,6 +634,7 @@
lib\OpenAL\lib\x86
+
@@ -952,6 +956,9 @@
+
+
+
diff -r 802460e60eee -r 6eb63623cbe8 Build/Visual Studio 2010/World of Might and Magic.vcxproj.user
--- a/Build/Visual Studio 2010/World of Might and Magic.vcxproj.user Sun Jun 01 18:37:09 2014 +0600
+++ b/Build/Visual Studio 2010/World of Might and Magic.vcxproj.user Mon Jun 02 12:31:28 2014 +0600
@@ -1,9 +1,9 @@
- $(OutDir)
+ ..\..\..\MM_VII
WindowsLocalDebugger
- -novideo, -nomarg
+ -nomarg
$(OutDir)$(TargetName)$(TargetExt)
\ No newline at end of file
diff -r 802460e60eee -r 6eb63623cbe8 MMT.cpp
--- a/MMT.cpp Sun Jun 01 18:37:09 2014 +0600
+++ b/MMT.cpp Mon Jun 02 12:31:28 2014 +0600
@@ -44,7 +44,7 @@
free(tex.pPixels);
tex.pPixels = 0;
MainMenuUI_LoadFontsAndSomeStuff();
- DrawMMTCopyrightWindow();
+ DrawMMTCopyrightWindow();//
pRenderer->EndScene();
pRenderer->Present();
@@ -187,10 +187,14 @@
pIcons_LOD->_inlined_sub2();
+ //
+ //WINDOW_MainMenu GUIWindow.h
pWindow_MMT_MainMenu = GUIWindow::Create(0, 0, window->GetWidth(), window->GetHeight(), WINDOW_MainMenu, 0, 0);
+
+ //
//Texture* MMT_MM6 = pIcons_LOD->LoadTexturePtr("title_new", TEXTURE_16BIT_PALETTE);
- sprintf(pContainerName, "data\\New_Icons/%s", "mm6_button_oval.png");
+ sprintf(pContainerName, "data\\New_Icons/%s", "mm6_button_oval.png");// png
Texture* MMT_MM6 = LoadPNG(pContainerName);
Texture* MMT_MM7 = pIcons_LOD->LoadTexturePtr("title_load", TEXTURE_16BIT_PALETTE);
@@ -206,9 +210,9 @@
pTexture_PCX.Release();
- sprintf(pContainerName, "data\\New_Icons/%s", "MMTTITLE.pcx");
+ sprintf(pContainerName, "data\\New_Icons/%s", "MMTTITLE.pcx");// pcx
pTexture_PCX.LoadPCXFile(pContainerName, 0);
- SetCurrentMenuID(MENU_MMT_MAIN_MENU);
+ SetCurrentMenuID(MENU_MMT_MAIN_MENU);// enum MENU_STATE GUIWindows.h
SetForegroundWindow(window->GetApiHandle());
SendMessageW(window->GetApiHandle(), WM_ACTIVATEAPP, 1, 0);
while (GetCurrentMenuID() == MENU_MMT_MAIN_MENU )
@@ -233,7 +237,7 @@
pRenderer->BeginScene();
pRenderer->DrawTextureRGB(0, 0, &pTexture_PCX);
- MMT_MenuMessageProc();
+ MMT_MenuMessageProc();//
GUI_UpdateWindows();
if ( !pModalWindow )// ???
@@ -286,6 +290,8 @@
GUI_UpdateWindows();
pRenderer->EndScene();
pRenderer->Present();
+
+ //
pTexture_PCX.Release();
if ( pGUIWindow2 )
{
diff -r 802460e60eee -r 6eb63623cbe8 MediaPlayer.cpp
--- a/MediaPlayer.cpp Sun Jun 01 18:37:09 2014 +0600
+++ b/MediaPlayer.cpp Mon Jun 02 12:31:28 2014 +0600
@@ -489,9 +489,9 @@
// ,
sample_rate_half = (sample_rate + 1) / 2; //22050
if (dec_ctx->codec->id == AV_CODEC_ID_BINKAUDIO_RDFT)
- root = 2.0 / (sqrt(frame_len) * 32768.0);
+ root = 2.0 / (sqrt(float(frame_len)) * 32768.0);
else
- root = frame_len / (sqrt(frame_len) * 32768.0);
+ root = frame_len / (sqrt(float(frame_len)) * 32768.0);
for (i = 0; i < 96; i++)
{
/* constant is result of 0.066399999/log10(M_E) */
diff -r 802460e60eee -r 6eb63623cbe8 Spells.cpp
--- a/Spells.cpp Sun Jun 01 18:37:09 2014 +0600
+++ b/Spells.cpp Mon Jun 02 12:31:28 2014 +0600
@@ -399,7 +399,7 @@
v11 = pParty->vPosition.y - fromy;
v12 = (pParty->vPosition.z + pParty->sEyelevel) - fromz;
}
- v13 = sqrt(v10 * v10 + v11 * v11 + v12 * v12);
+ v13 = sqrt(long double(v10 * v10 + v11 * v11 + v12 * v12));
if ( v13 <= 1.0 )
{
v55 = 1;
@@ -411,7 +411,7 @@
v55 = (int)v13;
ySquared = v11 * v11;
xSquared = v10 * v10;
- v14 = (int)sqrt(xSquared + ySquared);
+ v14 = (int)sqrt(long double(xSquared + ySquared));
yaw = stru_5C6E00->Atan2((int)v10, (int)v11);
pitch = stru_5C6E00->Atan2(v14, (int)v12);
}
diff -r 802460e60eee -r 6eb63623cbe8 UI/UIPopup.cpp
--- a/UI/UIPopup.cpp Sun Jun 01 18:37:09 2014 +0600
+++ b/UI/UIPopup.cpp Mon Jun 02 12:31:28 2014 +0600
@@ -2032,4 +2032,6 @@
return Color16(255, 255, 155);
if ( a1 < 100 )
return Color16(192, 192, 240);
+ else
+ __debugbreak();
}
\ No newline at end of file