diff --git a/source/src/audiomanager.cpp b/source/src/audiomanager.cpp index 00b5ae65..0662356b 100644 --- a/source/src/audiomanager.cpp +++ b/source/src/audiomanager.cpp @@ -1,6 +1,5 @@ // audio interface of the engine -#include "pch.h" #include "cube.h" #define DEBUGCOND (audiodebug==1) diff --git a/source/src/client.cpp b/source/src/client.cpp index b3a54eb4..0195b958 100644 --- a/source/src/client.cpp +++ b/source/src/client.cpp @@ -1,6 +1,5 @@ // client.cpp, mostly network related client game code -#include "pch.h" #include "cube.h" #include "bot/bot.h" diff --git a/source/src/clientgame.cpp b/source/src/clientgame.cpp index 586b5217..193b611a 100644 --- a/source/src/clientgame.cpp +++ b/source/src/clientgame.cpp @@ -1,6 +1,5 @@ // clientgame.cpp: core game related stuff -#include "pch.h" #include "cube.h" #include "bot/bot.h" diff --git a/source/src/clients2c.cpp b/source/src/clients2c.cpp index 4944e7e7..993a8e3a 100644 --- a/source/src/clients2c.cpp +++ b/source/src/clients2c.cpp @@ -1,6 +1,5 @@ // client processing of the incoming network stream -#include "pch.h" #include "cube.h" #include "bot/bot.h" diff --git a/source/src/command.cpp b/source/src/command.cpp index 63ac872f..9053b0f6 100644 --- a/source/src/command.cpp +++ b/source/src/command.cpp @@ -1,7 +1,6 @@ // command.cpp: implements the parsing and execution of a tiny script language which // is largely backwards compatible with the quake console language. -#include "pch.h" #include "cube.h" bool allowidentaccess(ident *id); diff --git a/source/src/console.cpp b/source/src/console.cpp index e633408d..c0db1071 100644 --- a/source/src/console.cpp +++ b/source/src/console.cpp @@ -1,6 +1,5 @@ // console.cpp: the console buffer, its display, and command line control -#include "pch.h" #include "cube.h" #define CONSPAD (FONTH/3) diff --git a/source/src/cube.h b/source/src/cube.h index 189f2a64..bb694811 100644 --- a/source/src/cube.h +++ b/source/src/cube.h @@ -1,6 +1,7 @@ #ifndef __CUBE_H__ #define __CUBE_H__ +#include "platform.h" #include "tools.h" #include "geom.h" #include "model.h" diff --git a/source/src/docs.cpp b/source/src/docs.cpp index d7ac4269..e090245e 100644 --- a/source/src/docs.cpp +++ b/source/src/docs.cpp @@ -1,6 +1,5 @@ // docs.cpp: ingame command documentation system -#include "pch.h" #include "cube.h" void renderdocsection(void *menu, bool init); diff --git a/source/src/editing.cpp b/source/src/editing.cpp index 631f8c0f..8712b47c 100644 --- a/source/src/editing.cpp +++ b/source/src/editing.cpp @@ -1,6 +1,5 @@ // editing.cpp: most map editing commands go here, entity editing commands are in world.cpp -#include "pch.h" #include "cube.h" bool editmode = false; diff --git a/source/src/entities.cpp b/source/src/entities.cpp index 98b7d60b..0d7917b9 100644 --- a/source/src/entities.cpp +++ b/source/src/entities.cpp @@ -1,6 +1,5 @@ // entities.cpp: map entity related functions (pickup etc.) -#include "pch.h" #include "cube.h" vector ents; diff --git a/source/src/i18n.cpp b/source/src/i18n.cpp index b286c136..693267bd 100644 --- a/source/src/i18n.cpp +++ b/source/src/i18n.cpp @@ -1,6 +1,5 @@ // internationalization and localization -#include "pch.h" #include "cube.h" #include diff --git a/source/src/log.cpp b/source/src/log.cpp index 3a4ea837..7d467147 100644 --- a/source/src/log.cpp +++ b/source/src/log.cpp @@ -1,6 +1,5 @@ // server-side logging of events -#include "pch.h" #include "cube.h" #if !defined(WIN32) && !defined(__APPLE__) diff --git a/source/src/main.cpp b/source/src/main.cpp index 78fea13f..aa06b76c 100644 --- a/source/src/main.cpp +++ b/source/src/main.cpp @@ -1,6 +1,5 @@ // main.cpp: initialisation & main loop -#include "pch.h" #include "cube.h" void cleanup(char *msg) // single program exit point; diff --git a/source/src/menus.cpp b/source/src/menus.cpp index de73cf39..15ad2707 100644 --- a/source/src/menus.cpp +++ b/source/src/menus.cpp @@ -1,6 +1,5 @@ // menus.cpp: ingame menu system (also used for scores and serverlist) -#include "pch.h" #include "cube.h" hashtable menus; diff --git a/source/src/oggstream.cpp b/source/src/oggstream.cpp index b04da253..8bd5890e 100644 --- a/source/src/oggstream.cpp +++ b/source/src/oggstream.cpp @@ -1,6 +1,5 @@ // audio streaming -#include "pch.h" #include "cube.h" #define DEBUGCOND (audiodebug==1) diff --git a/source/src/openal.cpp b/source/src/openal.cpp index e8b8ea07..5867544e 100644 --- a/source/src/openal.cpp +++ b/source/src/openal.cpp @@ -1,6 +1,5 @@ // simple OpenAL call wrappers -#include "pch.h" #include "cube.h" #define DEBUGCOND (audiodebug==1) diff --git a/source/src/packetqueue.cpp b/source/src/packetqueue.cpp index 8ffe50ea..545682e6 100644 --- a/source/src/packetqueue.cpp +++ b/source/src/packetqueue.cpp @@ -1,6 +1,5 @@ // supports buffering Enet packets for logging purposes -#include "pch.h" #include "cube.h" packetqueue::packetqueue() diff --git a/source/src/pch.cpp b/source/src/pch.cpp index 1d9f38c5..5b241e7f 100644 --- a/source/src/pch.cpp +++ b/source/src/pch.cpp @@ -1 +1 @@ -#include "pch.h" +#include "cube.h" diff --git a/source/src/physics.cpp b/source/src/physics.cpp index 51f0788c..f89a3b85 100644 --- a/source/src/physics.cpp +++ b/source/src/physics.cpp @@ -3,7 +3,6 @@ // they "felt right", and have no basis in reality. Collision detection is simplistic but // very robust (uses discrete steps at fixed fps). -#include "pch.h" #include "cube.h" float raycube(const vec &o, const vec &ray, vec &surface) diff --git a/source/src/pch.h b/source/src/platform.h similarity index 100% rename from source/src/pch.h rename to source/src/platform.h diff --git a/source/src/protocol.cpp b/source/src/protocol.cpp index 54d8e703..9f9e2c3a 100644 --- a/source/src/protocol.cpp +++ b/source/src/protocol.cpp @@ -1,6 +1,5 @@ // misc useful functions used by the server -#include "pch.h" #include "cube.h" #include "hash.h" diff --git a/source/src/rendercubes.cpp b/source/src/rendercubes.cpp index d42b3f82..df0d7193 100644 --- a/source/src/rendercubes.cpp +++ b/source/src/rendercubes.cpp @@ -1,6 +1,5 @@ // rendercubes.cpp: sits in between worldrender.cpp and rendergl.cpp and fills the vertex array for different cube surfaces. -#include "pch.h" #include "cube.h" vector verts; diff --git a/source/src/rendergl.cpp b/source/src/rendergl.cpp index 4e3deec9..4da6de8c 100644 --- a/source/src/rendergl.cpp +++ b/source/src/rendergl.cpp @@ -1,6 +1,5 @@ // rendergl.cpp: core opengl rendering stuff -#include "pch.h" #include "cube.h" #include "bot/bot.h" diff --git a/source/src/renderhud.cpp b/source/src/renderhud.cpp index 400166ae..9fc4f4de 100644 --- a/source/src/renderhud.cpp +++ b/source/src/renderhud.cpp @@ -1,6 +1,5 @@ // renderhud.cpp: HUD rendering -#include "pch.h" #include "cube.h" void drawicon(Texture *tex, float x, float y, float s, int col, int row, float ts) diff --git a/source/src/rendermodel.cpp b/source/src/rendermodel.cpp index 10212145..4b40a2cc 100644 --- a/source/src/rendermodel.cpp +++ b/source/src/rendermodel.cpp @@ -1,4 +1,3 @@ -#include "pch.h" #include "cube.h" VARP(animationinterpolationtime, 0, 150, 1000); diff --git a/source/src/renderparticles.cpp b/source/src/renderparticles.cpp index f8b373ae..901e4d22 100644 --- a/source/src/renderparticles.cpp +++ b/source/src/renderparticles.cpp @@ -1,6 +1,5 @@ // renderparticles.cpp -#include "pch.h" #include "cube.h" static GLushort *hemiindices = NULL; diff --git a/source/src/rendertext.cpp b/source/src/rendertext.cpp index 6ef31461..faa6b9d7 100644 --- a/source/src/rendertext.cpp +++ b/source/src/rendertext.cpp @@ -1,6 +1,5 @@ // rendertext.cpp: font rendering -#include "pch.h" #include "cube.h" int VIRTW; diff --git a/source/src/rndmap.cpp b/source/src/rndmap.cpp index 592f3edb..0e6eef26 100644 --- a/source/src/rndmap.cpp +++ b/source/src/rndmap.cpp @@ -1,6 +1,5 @@ // rndmap.cpp: perlin noise landscape generation and some experimental random map stuff, currently not used -#include "pch.h" #include "cube.h" float noise(int x, int y, int seed) diff --git a/source/src/scoreboard.cpp b/source/src/scoreboard.cpp index 4e0efb1a..5827ee33 100644 --- a/source/src/scoreboard.cpp +++ b/source/src/scoreboard.cpp @@ -1,6 +1,5 @@ // creation of scoreboard pseudo-menu -#include "pch.h" #include "cube.h" void *scoremenu = NULL, *teammenu = NULL, *ctfmenu = NULL; diff --git a/source/src/server.cpp b/source/src/server.cpp index c8548143..1ba7a63b 100644 --- a/source/src/server.cpp +++ b/source/src/server.cpp @@ -2,8 +2,6 @@ // runs dedicated or as client coroutine // my first try // Brahma -#include "pch.h" - #ifdef WIN32 #include #else diff --git a/source/src/serverbrowser.cpp b/source/src/serverbrowser.cpp index 01359d81..6e6929f8 100644 --- a/source/src/serverbrowser.cpp +++ b/source/src/serverbrowser.cpp @@ -1,6 +1,5 @@ // serverbrowser.cpp: eihrul's concurrent resolver, and server browser window management -#include "pch.h" #include "cube.h" #ifdef __APPLE__ #include diff --git a/source/src/serverms.cpp b/source/src/serverms.cpp index 2deb6f82..3072dee8 100644 --- a/source/src/serverms.cpp +++ b/source/src/serverms.cpp @@ -1,6 +1,5 @@ // all server side masterserver and pinging functionality -#include "pch.h" #include "cube.h" #ifdef STANDALONE diff --git a/source/src/shadow.cpp b/source/src/shadow.cpp index 8d6d14a4..44a9afd8 100644 --- a/source/src/shadow.cpp +++ b/source/src/shadow.cpp @@ -1,6 +1,5 @@ // shadow.cpp: stencil shadow rendering -#include "pch.h" #include "cube.h" VARP(stencilshadow, 0, 40, 100); diff --git a/source/src/sound.cpp b/source/src/sound.cpp index 78b04004..88a6f323 100644 --- a/source/src/sound.cpp +++ b/source/src/sound.cpp @@ -1,5 +1,4 @@ // sound.cpp: uses OpenAL, some code chunks are from devmaster.net and gamedev.net -#include "pch.h" #include "cube.h" diff --git a/source/src/soundlocation.cpp b/source/src/soundlocation.cpp index 87103ee2..6d680231 100644 --- a/source/src/soundlocation.cpp +++ b/source/src/soundlocation.cpp @@ -1,6 +1,5 @@ // short living sound occurrence, dies once the sound stops -#include "pch.h" #include "cube.h" #define DEBUGCOND (audiodebug==1) diff --git a/source/src/soundscheduler.cpp b/source/src/soundscheduler.cpp index 6488650c..5aa9310d 100644 --- a/source/src/soundscheduler.cpp +++ b/source/src/soundscheduler.cpp @@ -2,7 +2,6 @@ // It keeps a set of reserved sources for each priority level to avoid running out of sources by floods of low-priority sounds. // Under load it uses priority and distance information to reassign its resources. -#include "pch.h" #include "cube.h" #define DEBUGCOND (audiodebug==1) diff --git a/source/src/texture.cpp b/source/src/texture.cpp index e2f16c49..2e068f26 100644 --- a/source/src/texture.cpp +++ b/source/src/texture.cpp @@ -1,6 +1,5 @@ // texture.cpp: texture management -#include "pch.h" #include "cube.h" #define FUNCNAME(name) name##1 diff --git a/source/src/tools.cpp b/source/src/tools.cpp index a829a67b..2f4ebd16 100644 --- a/source/src/tools.cpp +++ b/source/src/tools.cpp @@ -1,6 +1,5 @@ // implementation of generic tools -#include "pch.h" #include "cube.h" ///////////////////////// file system /////////////////////// diff --git a/source/src/water.cpp b/source/src/water.cpp index 14472fe8..114d0e24 100644 --- a/source/src/water.cpp +++ b/source/src/water.cpp @@ -1,4 +1,3 @@ -#include "pch.h" #include "cube.h" int wx1, wy1, wx2, wy2; diff --git a/source/src/weapon.cpp b/source/src/weapon.cpp index 2155aa9d..302b8992 100644 --- a/source/src/weapon.cpp +++ b/source/src/weapon.cpp @@ -1,6 +1,5 @@ // weapon.cpp: all shooting and effects code -#include "pch.h" #include "cube.h" #include "bot/bot.h" #include "hudgun.h" diff --git a/source/src/wizard.cpp b/source/src/wizard.cpp index 727066be..b67987c9 100644 --- a/source/src/wizard.cpp +++ b/source/src/wizard.cpp @@ -1,7 +1,6 @@ // wizard to start an AssaultCube server and storing the configuration - -#include "pch.h" +#include "platform.h" #include #include diff --git a/source/src/world.cpp b/source/src/world.cpp index 8d3b74e7..fa508fb9 100644 --- a/source/src/world.cpp +++ b/source/src/world.cpp @@ -1,6 +1,5 @@ // world.cpp: core map management stuff -#include "pch.h" #include "cube.h" #include "bot/bot.h" diff --git a/source/src/worldio.cpp b/source/src/worldio.cpp index 78914859..fef09668 100644 --- a/source/src/worldio.cpp +++ b/source/src/worldio.cpp @@ -1,6 +1,5 @@ // worldio.cpp: loading & saving of maps and savegames -#include "pch.h" #include "cube.h" void backup(char *name, char *backupname) diff --git a/source/src/worldlight.cpp b/source/src/worldlight.cpp index de23b6d0..cd41fe34 100644 --- a/source/src/worldlight.cpp +++ b/source/src/worldlight.cpp @@ -1,6 +1,5 @@ // worldlight.cpp -#include "pch.h" #include "cube.h" VAR(lightscale,1,4,100); diff --git a/source/src/worldocull.cpp b/source/src/worldocull.cpp index 221e0066..04bc0b08 100644 --- a/source/src/worldocull.cpp +++ b/source/src/worldocull.cpp @@ -1,6 +1,5 @@ // worldocull.cpp: occlusion map and occlusion test -#include "pch.h" #include "cube.h" #define NUMRAYS 512 diff --git a/source/src/worldrender.cpp b/source/src/worldrender.cpp index 6d6bb5a5..3ef409f7 100644 --- a/source/src/worldrender.cpp +++ b/source/src/worldrender.cpp @@ -1,7 +1,6 @@ // worldrender.cpp: goes through all cubes in top down quad tree fashion, determines what has to // be rendered and how (depending on neighbouring cubes), then calls functions in rendercubes.cpp -#include "pch.h" #include "cube.h" void render_wall(sqr *o, sqr *s, int x1, int y1, int x2, int y2, int mip, sqr *d1, sqr *d2, bool topleft, int dir)