mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
Initialized many variables
Fix for enemy invasions and reinforcements git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1192 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -3280,7 +3280,7 @@ void DrawIconOnButton(GUI_BUTTON *b)
|
||||
INT32 IconW,IconH;
|
||||
SGPRect NewClip,OldClip;
|
||||
ETRLEObject *pTrav;
|
||||
HVOBJECT hvObject;
|
||||
HVOBJECT hvObject = NULL;
|
||||
|
||||
// If there's an actual icon on this button, try to show it.
|
||||
if(b->iIconID >= 0)
|
||||
|
||||
@@ -469,7 +469,7 @@ void DbClose( HDBINDEX hFile )
|
||||
HDBFILE DbFileOpen( STR strFilename )
|
||||
{
|
||||
HDBFILE hFile;
|
||||
HFILEINDEX hFileIndex;
|
||||
HFILEINDEX hFileIndex = 0xffff;
|
||||
HDBINDEX hDBIndex;
|
||||
UINT16 i;
|
||||
|
||||
|
||||
@@ -451,8 +451,8 @@ HRESULT BltFastDDSurfaceUsingSoftware( LPDIRECTDRAWSURFACE2 pDestSurface, INT32
|
||||
HRESULT BltDDSurfaceUsingSoftware( LPDIRECTDRAWSURFACE2 pDestSurface, LPRECT pDestRect, LPDIRECTDRAWSURFACE2 pSrcSurface, LPRECT pSrcRect, UINT32 uiFlags, LPDDBLTFX pDDBltFx )
|
||||
{
|
||||
DDSURFACEDESC SurfaceDescription;
|
||||
UINT32 uiDestPitchBYTES, uiSrcPitchBYTES;
|
||||
UINT8 *pDestBuf, *pSrcBuf;
|
||||
UINT32 uiDestPitchBYTES, uiSrcPitchBYTES = 0;
|
||||
UINT8 *pDestBuf, *pSrcBuf = NULL;
|
||||
HRESULT ReturnCode;
|
||||
DDCOLORKEY ColorKey;
|
||||
UINT16 us16BPPColorKey;
|
||||
|
||||
@@ -306,7 +306,7 @@ void MemFreeReal( PTR ptr, const STR8 pcFile, INT32 iLine )
|
||||
PTR MemReallocReal( PTR ptr, UINT32 uiSize, const STR8 pcFile, INT32 iLine )
|
||||
{
|
||||
PTR ptrNew;
|
||||
UINT32 uiOldSize;
|
||||
UINT32 uiOldSize = 0;
|
||||
|
||||
|
||||
if ( !fMemManagerInit )
|
||||
|
||||
@@ -46,8 +46,9 @@
|
||||
RuntimeLibrary="1"
|
||||
RuntimeTypeInfo="false"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
WarningLevel="4"
|
||||
DebugInformationFormat="4"
|
||||
DisableSpecificWarnings="4100"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
|
||||
@@ -856,6 +856,8 @@ int PASCAL HandledWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR p
|
||||
|
||||
// At this point the SGP is set up, which means all I/O, Memory, tools, etc... are available. All we need to do is
|
||||
// attend to the gaming mechanics themselves
|
||||
Message.wParam = 0;
|
||||
|
||||
while (gfProgramIsRunning)
|
||||
{
|
||||
// if (PeekMessage(&Message, NULL, 0, 0, PM_NOREMOVE))
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user