forked from Mirrors/openclonk
minor fixes
parent
acca4a204d
commit
826621b555
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue