minor fixes

stable-5.2
Sven Eberhardt 2009-08-26 14:41:29 +02:00
parent acca4a204d
commit 826621b555
3 changed files with 8 additions and 3 deletions

View File

@ -234,7 +234,10 @@ bool C4LSectors::CheckSort()
void C4LSectors::ClearObjects()
{
for (int cnt=0; cnt<Size; cnt++) Sectors[cnt].ClearObjects();
if (Sectors)
{
for (int cnt=0; cnt<Size; cnt++) Sectors[cnt].ClearObjects();
}
SectorOut.ClearObjects();
}

View File

@ -1447,8 +1447,8 @@ void C4Player::CompileFunc(StdCompiler *pComp, bool fExact)
bool bForceFogOfWar = false;
pComp->Value(mkNamingAdapt(bForceFogOfWar, "ForceFogOfWar", false));
pComp->Value(mkNamingAdapt(ShowStartup, "ShowStartup", false));
pComp->Value(mkNamingAdapt(ShowControl, "ShowControl", false));
pComp->Value(mkNamingAdapt(ShowControlPos, "ShowControlPos", false));
pComp->Value(mkNamingAdapt(ShowControl, "ShowControl", 0));
pComp->Value(mkNamingAdapt(ShowControlPos, "ShowControlPos", 0));
pComp->Value(mkNamingAdapt(Wealth, "Wealth", 0));
pComp->Value(mkNamingAdapt(Points, "Points", 0));
pComp->Value(mkNamingAdapt(Value, "Value", 0));

View File

@ -28,7 +28,9 @@
#endif
#ifdef _WIN32
#ifndef _WIN32_IE
#define _WIN32_IE 0x0400
#endif
#include <shlobj.h>
#ifndef CSIDL_MYPICTURES
#define CSIDL_MYPICTURES 0x0027