Prevent using USE_CONSOLE in lib{misc,c4script}

directional-lights
Julius Michaelis 2016-10-22 13:19:22 +02:00
parent e7f4105b97
commit 376ca5a9df
67 changed files with 195 additions and 70 deletions

View File

@ -1069,25 +1069,25 @@ endif()
add_library(libc4script
src/C4Include.cpp
src/c4group/C4GroupSet.cpp
src/c4group/C4GroupSet.h
src/c4group/C4ComponentHost.cpp
src/c4group/C4ComponentHost.h
src/c4group/C4GroupSet.cpp
src/c4group/C4GroupSet.h
src/c4group/C4LangStringTable.cpp
src/c4group/C4LangStringTable.h
src/lib/C4RandomRecord.cpp
src/lib/C4Real.cpp
src/lib/C4Real.h
src/lib/C4RandomRecord.cpp
src/script/C4Aul.cpp
src/script/C4AulCompiler.h
src/script/C4Aul.h
src/script/C4AulAST.h
src/script/C4AulCompiler.cpp
src/script/C4AulCompiler.h
src/script/C4AulDefFunc.h
src/script/C4AulExec.cpp
src/script/C4AulExec.h
src/script/C4AulFunc.cpp
src/script/C4AulFunc.h
src/script/C4Aul.h
src/script/C4AulAST.h
src/script/C4AulLink.cpp
src/script/C4AulParse.cpp
src/script/C4AulParse.h
@ -1102,15 +1102,17 @@ src/script/C4ScriptHost.cpp
src/script/C4ScriptHost.h
src/script/C4StringTable.cpp
src/script/C4StringTable.h
src/script/C4ValueArray.cpp
src/script/C4ValueArray.h
src/script/C4Value.cpp
src/script/C4Value.h
src/script/C4ValueArray.cpp
src/script/C4ValueArray.h
src/script/C4ValueMap.cpp
src/script/C4ValueMap.h
)
target_link_libraries(libc4script libmisc)
target_compile_definitions(libmisc PRIVATE "COMPILED_AS_C4LIBRARY")
target_compile_definitions(libc4script PRIVATE "COMPILED_AS_C4LIBRARY")
add_executable(c4script
include/c4script/c4script.h
@ -1120,6 +1122,8 @@ add_executable(c4script
)
set_property(TARGET c4script PROPERTY FOLDER "Utilities")
target_compile_definitions(c4script PRIVATE "USE_CONSOLE")
target_link_libraries(c4script
libmisc
libc4script

View File

@ -0,0 +1,30 @@
/*
* OpenClonk, http://www.openclonk.org
*
* Copyright (c) 2016, The OpenClonk Team and contributors
*
* Distributed under the terms of the ISC license; see accompanying file
* "COPYING" for details.
*
* "Clonk" is a registered trademark of Matthes Bender, used with permission.
* See accompanying file "TRADEMARK" for details.
*
* To redistribute this file separately, substitute the full license texts
* for the above references.
*/
/*
* This file serves as a quick way to check wither COMPILED_AS_C4LIBRARY is set, which is the case when compiling lib{misc,c4script}
* This file should be included when the USE_CONSOLE define is checked. In the past, we had some header files with classes like
class Foo {
#ifndef USE_CONSOLE
int bar;
#endif
int blubb;
}
* If such a header was included in the library, the class definition would look different for the library than for the openclonk-server, which could be potentially desasterous. (just think of accessing blubb, or destructors, or copying it by size, or)
*/
#ifdef COMPILED_AS_C4LIBRARY // as (hopefully) defined in the CMakeLists.txt
#error A file that is marked as not suitable for being included in lib{misc,c4script} (probably because it checks USE_CONSOLE) has been included in their compilation. Check your header dependencies.
#endif

View File

@ -17,6 +17,7 @@
/* Game configuration as stored in registry */
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "config/C4Config.h"
#include "C4Version.h"

View File

@ -16,6 +16,7 @@
// Input to player control mapping
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "control/C4PlayerControl.h"
#include "object/C4DefList.h"

View File

@ -17,6 +17,7 @@
/* Player and editor viewports in console */
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "script/C4Value.h"
#include "game/C4Viewport.h"
#include "object/C4Object.h"

View File

@ -18,6 +18,7 @@
/* Main class to initialize configuration and execute the game */
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "game/C4Application.h"
#include "C4Version.h"

View File

@ -18,6 +18,7 @@
/* Main class to run the game */
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "game/C4Game.h"
#include "script/C4AulDebug.h"

View File

@ -18,6 +18,7 @@
/* Functions mapped by C4Script */
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "game/C4GameScript.h"
#include "game/C4Application.h"

View File

@ -18,6 +18,7 @@
/* Operates viewports, message board and draws the game */
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "game/C4GraphicsSystem.h"
#include "game/C4Viewport.h"

View File

@ -18,6 +18,7 @@
/* A viewport to each player */
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "game/C4Viewport.h"
#include "editor/C4ViewportWindow.h"

View File

@ -17,6 +17,7 @@
/* NewGfx interfaces */
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "graphics/C4Draw.h"
#include "platform/C4App.h"

View File

@ -17,6 +17,7 @@
/* OpenGL implementation of NewGfx */
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "graphics/C4DrawGL.h"
#include "graphics/C4Surface.h"

View File

@ -16,7 +16,7 @@
/* OpenGL implementation of NewGfx */
#include "C4ForbidLibraryCompilation.h"
#if !defined(INC_StdGL) && !defined(USE_CONSOLE)
#define INC_StdGL

View File

@ -17,6 +17,7 @@
/* OpenGL implementation of NewGfx, the context */
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "graphics/C4DrawGL.h"
#include "platform/C4Window.h"

View File

@ -17,6 +17,7 @@
/* OpenGL implementation of Mesh Rendering */
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "object/C4Object.h"
#include "graphics/C4DrawGL.h"
#include "landscape/fow/C4FoWRegion.h"

View File

@ -158,4 +158,42 @@ public:
{ return iWidth * Hgt / (Wdt ? Wdt : 1); }
};
class C4TargetFacet: public C4Facet
{
public:
C4TargetFacet() { Default(); }
~C4TargetFacet() { }
public:
float TargetX,TargetY,Zoom;
// Reference values for parallax computations. This is similar to
// a scrolling position. In most cases these are the same as TargetX
// and TargetY, however for full map screenshots, which are composed
// of several individual screenshots, these are kept fixed while
// TargetX/TargetY are varied to cover the full map. This prevents
// duplicate parallax objects in fullscreen map screenshots. If
// TargetX/TargetY are different from ParRefX/ParRefY it can be thought
// of as drawing only a part of a window/viewport at a given fixed
// scroll position.
// See bug #1042.
float ParRefX, ParRefY;
public:
void Default() { TargetX=TargetY=0; Zoom=1; ParRefX=ParRefY=0; C4Facet::Default(); }
void Clear() { Surface=NULL; }
void Set(const C4Facet &cpy) { TargetX=TargetY=0; Zoom=1; ParRefX=ParRefY=0; C4Facet::Set(cpy); }
void Set(const C4TargetFacet &cpy) { *this = cpy; }
void Set(class C4Surface *nsfc, float nx, float ny, float nwdt, float nhgt, float ntx=0, float nty=0, float Zoom=1);
void Set(class C4Surface *nsfc, const C4Rect & r, float ntx=0, float nty=0, float Zoom=1);
void Set(class C4Surface *nsfc, float nx, float ny, float nwdt, float nhgt, float ntx, float nty, float Zoom, float prx, float pry);
public:
C4TargetFacet &operator = (const C4Facet& rhs)
{
Set(rhs.Surface,rhs.X,rhs.Y,rhs.Wdt,rhs.Hgt);
return *this;
}
void SetRect(C4TargetRect &rSrc);
};
#endif // INC_C4Facet

View File

@ -27,44 +27,6 @@ const int C4FCT_Full = -1,
C4FCT_Height = -2,
C4FCT_Width = -3;
class C4TargetFacet: public C4Facet
{
public:
C4TargetFacet() { Default(); }
~C4TargetFacet() { }
public:
float TargetX,TargetY,Zoom;
// Reference values for parallax computations. This is similar to
// a scrolling position. In most cases these are the same as TargetX
// and TargetY, however for full map screenshots, which are composed
// of several individual screenshots, these are kept fixed while
// TargetX/TargetY are varied to cover the full map. This prevents
// duplicate parallax objects in fullscreen map screenshots. If
// TargetX/TargetY are different from ParRefX/ParRefY it can be thought
// of as drawing only a part of a window/viewport at a given fixed
// scroll position.
// See bug #1042.
float ParRefX, ParRefY;
public:
void Default() { TargetX=TargetY=0; Zoom=1; ParRefX=ParRefY=0; C4Facet::Default(); }
void Clear() { Surface=NULL; }
void Set(const C4Facet &cpy) { TargetX=TargetY=0; Zoom=1; ParRefX=ParRefY=0; C4Facet::Set(cpy); }
void Set(const C4TargetFacet &cpy) { *this = cpy; }
void Set(class C4Surface *nsfc, float nx, float ny, float nwdt, float nhgt, float ntx=0, float nty=0, float Zoom=1);
void Set(class C4Surface *nsfc, const C4Rect & r, float ntx=0, float nty=0, float Zoom=1);
void Set(class C4Surface *nsfc, float nx, float ny, float nwdt, float nhgt, float ntx, float nty, float Zoom, float prx, float pry);
public:
C4TargetFacet &operator = (const C4Facet& rhs)
{
Set(rhs.Surface,rhs.X,rhs.Y,rhs.Wdt,rhs.Hgt);
return *this;
}
void SetRect(C4TargetRect &rSrc);
};
// facet that can hold its own surface
class C4FacetSurface : public C4Facet
{

View File

@ -17,6 +17,7 @@
// text drawing facility for C4Draw
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "graphics/C4FontLoader.h"
#ifndef USE_CONSOLE

View File

@ -18,9 +18,11 @@
#ifndef INC_STDFONT
#define INC_STDFONT
#include "C4ForbidLibraryCompilation.h"
#include "lib/C4Markup.h"
#include "graphics/C4Facet.h"
#include "graphics/C4Surface.h"
#include "graphics/C4FontLoaderCustomImages.h"
#include "lib/StdBuf.h"
#include <stdio.h>
#include <map>
@ -80,18 +82,7 @@ extern C4FontLoader FontLoader;
class CStdFont
{
public:
// callback class to allow custom images
class CustomImages
{
protected:
virtual bool DrawFontImage(const char* szImageTag, C4Facet& cgo, C4DrawTransform* transform) = 0;
virtual float GetFontImageAspect(const char* szImageTag) = 0;
friend class CStdFont;
public:
virtual ~CustomImages() { }
};
typedef CStdFontCustomImages CustomImages;
int id; // used by the engine to keep track of where the font came from
protected:

View File

@ -0,0 +1,32 @@
/*
* OpenClonk, http://www.openclonk.org
*
* Copyright (c) 2003-2009, RedWolf Design GmbH, http://www.clonk.de/
* Copyright (c) 2010-2016, The OpenClonk Team and contributors
*
* Distributed under the terms of the ISC license; see accompanying file
* "COPYING" for details.
*
* "Clonk" is a registered trademark of Matthes Bender, used with permission.
* See accompanying file "TRADEMARK" for details.
*
* To redistribute this file separately, substitute the full license texts
* for the above references.
*/
#ifndef C4FontLoaderCustomImages_H
#define C4FontLoaderCustomImages_H
// callback class for CStdFont to allow custom images
class CStdFontCustomImages
{
protected:
virtual bool DrawFontImage(const char* szImageTag, C4Facet& cgo, C4DrawTransform* transform) = 0;
virtual float GetFontImageAspect(const char* szImageTag) = 0;
friend class CStdFont;
public:
virtual ~CStdFontCustomImages() { }
};
#endif

View File

@ -18,6 +18,7 @@
/* Loads all standard graphics from Graphics.ocg */
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "graphics/C4GraphicsResource.h"
#include "object/C4DefList.h"

View File

@ -14,6 +14,7 @@
*/
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "graphics/C4Shader.h"
#include "game/C4Application.h"
#include "graphics/C4DrawGL.h"

View File

@ -18,6 +18,7 @@
#ifndef INC_C4Shader
#define INC_C4Shader
#include "C4ForbidLibraryCompilation.h"
#include "lib/StdBuf.h"
#include "lib/StdMeshMath.h"
#include "graphics/C4Surface.h"

View File

@ -17,6 +17,7 @@
// a wrapper class to DirectDraw surfaces
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "graphics/C4Surface.h"
#include "platform/StdFile.h"

View File

@ -18,6 +18,7 @@
#ifndef INC_StdSurface2
#define INC_StdSurface2
#include "C4ForbidLibraryCompilation.h"
#include "lib/C4Rect.h"
#include <list>

View File

@ -18,6 +18,7 @@
/* Extension to C4Surface that handles bitmaps in C4Group files */
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "graphics/C4Surface.h"
#include "c4group/C4GroupSet.h"

View File

@ -18,6 +18,7 @@
// dialog base classes and some user dialogs
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "gui/C4Gui.h"
#include "object/C4DefList.h"

View File

@ -16,6 +16,7 @@
// Startup screen for non-parameterized engine start
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "gui/C4Startup.h"
#include "graphics/C4FontLoader.h"

View File

@ -16,6 +16,7 @@
// Startup screen for non-parameterized engine start: Options dialog
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "gui/C4StartupOptionsDlg.h"
#include "game/C4Application.h"

View File

@ -18,6 +18,7 @@
/* Handles landscape and sky */
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "landscape/C4Landscape.h"
#include <array>

View File

@ -14,6 +14,7 @@
*/
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "landscape/C4LandscapeRender.h"
#include "landscape/C4Landscape.h"

View File

@ -17,6 +17,7 @@
#ifndef C4LANDSCAPE_RENDER_H
#define C4LANDSCAPE_RENDER_H
#include "C4ForbidLibraryCompilation.h"
#include "graphics/C4Surface.h"
#include "graphics/C4FacetEx.h"
#include "graphics/C4Shader.h"

View File

@ -14,6 +14,7 @@
*/
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "landscape/C4Particles.h"
// headers for particle loading

View File

@ -13,6 +13,7 @@
* for the above references.
*/
#include "C4ForbidLibraryCompilation.h"
#include "graphics/C4FacetEx.h"
#include "lib/C4Random.h"

View File

@ -14,6 +14,7 @@
*/
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "landscape/fow/C4FoW.h"
#include "graphics/C4Draw.h"

View File

@ -16,6 +16,7 @@
#ifndef C4FOW_H
#define C4FOW_H
#include "C4ForbidLibraryCompilation.h"
#include "graphics/C4Surface.h"
#include "graphics/C4FacetEx.h"
#include "lib/C4Rect.h"

View File

@ -14,6 +14,7 @@
*/
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "landscape/fow/C4FoWAmbient.h"
#include "landscape/fow/C4FoW.h"
#include "graphics/C4Draw.h"

View File

@ -16,6 +16,8 @@
#ifndef C4FOWAMBIENT_H
#define C4FOWAMBIENT_H
#include "C4ForbidLibraryCompilation.h"
#include "landscape/C4Landscape.h"
#ifndef USE_CONSOLE
#include <GL/glew.h>

View File

@ -14,6 +14,7 @@
*/
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#ifndef USE_CONSOLE
#include "landscape/fow/C4FoWBeam.h"

View File

@ -16,6 +16,8 @@
#ifndef C4FOWBEAM_H
#define C4FOWBEAM_H
#include "C4ForbidLibraryCompilation.h"
#ifndef USE_CONSOLE
#include "lib/StdBuf.h"

View File

@ -14,6 +14,7 @@
*/
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#ifndef USE_CONSOLE

View File

@ -16,6 +16,8 @@
#ifndef C4FOWDRAWSTRATEGY_H
#define C4FOWDRAWSTRATEGY_H
#include "C4ForbidLibraryCompilation.h"
#ifndef USE_CONSOLE
#include "graphics/C4DrawGL.h"

View File

@ -14,6 +14,7 @@
*/
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#ifndef USE_CONSOLE

View File

@ -15,6 +15,8 @@
#ifndef C4FOWLIGHT_H
#define C4FOWLIGHT_H
#include "C4ForbidLibraryCompilation.h"
#ifndef USE_CONSOLE
#include "object/C4Object.h"

View File

@ -14,6 +14,7 @@
*/
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#ifndef USE_CONSOLE

View File

@ -16,6 +16,8 @@
#ifndef C4FOWLIGHTSECTION_H
#define C4FOWLIGHTSECTION_H
#include "C4ForbidLibraryCompilation.h"
#ifndef USE_CONSOLE
#include "lib/C4Rect.h"

View File

@ -14,6 +14,7 @@
*/
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "landscape/fow/C4FoWRegion.h"
#include "graphics/C4DrawGL.h"

View File

@ -16,6 +16,7 @@
#ifndef C4FOWREGION_H
#define C4FOWREGION_H
#include "C4ForbidLibraryCompilation.h"
#include "lib/C4Rect.h"
#include "graphics/C4FacetEx.h"
#include "player/C4Player.h"

View File

@ -15,6 +15,7 @@
*/
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "graphics/C4DrawGL.h"
#include "lib/StdMesh.h"
#include <algorithm>

View File

@ -17,6 +17,7 @@
#ifndef INC_StdMesh
#define INC_StdMesh
#include "C4ForbidLibraryCompilation.h"
#include "lib/StdMeshMath.h"
#include "lib/StdMeshMaterial.h"

View File

@ -15,6 +15,7 @@
*/
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "lib/StdMeshMaterial.h"
#include "lib/StdMeshUpdate.h"
#include "graphics/C4DrawGL.h"

View File

@ -15,6 +15,7 @@
*/
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "network/C4Network2.h"
#include "C4Version.h"

View File

@ -18,6 +18,7 @@
/* Object definition */
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "object/C4Def.h"
#include "graphics/C4DrawGL.h"
#include "graphics/C4GraphicsResource.h"

View File

@ -36,6 +36,7 @@
#include "player/C4RankSystem.h"
#include "graphics/C4GraphicsResource.h"
#include "graphics/C4Draw.h"
#include "graphics/C4Surface.h"
#include "object/C4MeshAnimation.h"
#include "lib/StdMeshLoader.h"
#include "lib/StdMeshUpdate.h"
@ -927,7 +928,7 @@ void C4GraphicsOverlay::Draw(C4TargetFacet &cgo, C4Object *pForObj, int32_t iByP
else if (OverlayObj)
{
assert(pForObj);
// TODO: Shouldn't have called PrepareDrawing/set ClrModulation here, since
// TODO: Shouldn't have called PrepareDrawing/set ClrModulation here, since
// OverlayObj drawing will do it on its own.
if (eMode == MODE_ObjectPicture)
{
@ -1185,3 +1186,16 @@ void C4GraphicsOverlayListAdapt::CompileFunc(StdCompiler *pComp)
}
}
}
C4Surface *C4DefGraphics::GetBitmap(DWORD dwClr)
{
if (Type != TYPE_Bitmap)
return NULL;
if (Bmp.BitmapClr)
{
Bmp.BitmapClr->SetClr(dwClr);
return Bmp.BitmapClr;
}
else
return Bmp.Bitmap;
}

View File

@ -18,8 +18,7 @@
#ifndef INC_C4DefGraphics
#define INC_C4DefGraphics
#include "graphics/C4FacetEx.h"
#include "graphics/C4Surface.h"
#include "graphics/C4Facet.h"
#include "object/C4ObjectPtr.h"
#include "lib/C4InputValidation.h"
#include "lib/StdMeshUpdate.h"
@ -59,7 +58,7 @@ public:
bool fColorBitmapAutoCreated; // if set, the color-by-owner-bitmap has been created automatically by all blue shades of the bitmap
inline C4Surface *GetBitmap(DWORD dwClr=0) { if (Type != TYPE_Bitmap) return NULL; if (Bmp.BitmapClr) { Bmp.BitmapClr->SetClr(dwClr); return Bmp.BitmapClr; } else return Bmp.Bitmap; }
C4Surface *GetBitmap(DWORD dwClr=0);
C4DefGraphics(C4Def *pOwnDef=NULL); // ctor
virtual ~C4DefGraphics() { Clear(); }; // dtor

View File

@ -20,9 +20,9 @@
#ifndef INC_C4DefList
#define INC_C4DefList
#include "graphics/C4FontLoader.h"
#include "graphics/C4FontLoaderCustomImages.h"
class C4DefList: public CStdFont::CustomImages
class C4DefList: public CStdFontCustomImages
{
public:
C4DefList();

View File

@ -23,6 +23,7 @@
#include "object/C4Def.h"
#include "object/C4DefList.h"
#include "lib/C4Random.h"
#include "lib/C4Markup.h"
#include "player/C4RankSystem.h"
#include "c4group/C4Group.h"
#include "c4group/C4Components.h"

View File

@ -18,6 +18,7 @@
/* That which fills the world with life */
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "object/C4Object.h"
#include "script/C4AulExec.h"

View File

@ -16,6 +16,7 @@
*/
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "script/C4Aul.h"
#include "script/C4AulDefFunc.h"

View File

@ -20,7 +20,6 @@
#ifndef INC_C4Shape
#define INC_C4Shape
#include "graphics/C4FacetEx.h"
#include "config/C4Constants.h"
#include "lib/C4Rect.h"

View File

@ -19,6 +19,7 @@
#ifndef INC_STDAPP
#define INC_STDAPP
#include "C4ForbidLibraryCompilation.h"
#include "platform/StdScheduler.h"
#include "platform/StdSync.h"
#include "platform/C4StdInProc.h"

View File

@ -16,6 +16,7 @@
// based on SDL implementation
#include "C4ForbidLibraryCompilation.h"
#include <GL/glew.h>
#include <string>

View File

@ -18,6 +18,7 @@
/* Gamepad control */
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "platform/C4GamePadCon.h"
#include "config/C4Config.h"

View File

@ -19,6 +19,7 @@
#ifndef INC_STDWINDOW
#define INC_STDWINDOW
#include "C4ForbidLibraryCompilation.h"
#include "lib/StdBuf.h"
#if defined(USE_SDL_MAINLOOP)

View File

@ -18,6 +18,7 @@
/* A wrapper class to OS dependent event and window interfaces, WIN32 version */
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "platform/C4Window.h"
#include "game/C4Application.h"

View File

@ -20,8 +20,6 @@
#include "script/C4Aul.h"
#include "object/C4GameObjects.h"
#include "game/C4Game.h"
#include "object/C4Object.h"
#include "control/C4Record.h"
void C4PropList::AddRef(C4Value *pRef)

View File

@ -19,7 +19,6 @@
#include "script/C4Aul.h"
#include "object/C4FindObject.h"
#include "object/C4Object.h"
C4ValueArray::C4ValueArray()
: pData(NULL), iSize(0), iCapacity(0), constant(false)
@ -90,7 +89,7 @@ void C4ValueArray::Sort(class C4SortObject &rSort)
pPos[i] = reinterpret_cast<intptr_t>(pData[pPos[i]]._getObj());
// Set the values
for (i = 0; i < iSize; i++)
pData[i].SetPropList(reinterpret_cast<C4Object *>(pPos[i]));
pData[i].SetPropList(reinterpret_cast<C4PropList *>(pPos[i]));
delete [] pPos;
}
else