]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - quakedef.h
added back r_speeds2, with masses of information (6 lines high), and made it print...
[xonotic/darkplaces.git] / quakedef.h
index 5a8d932b4af7a4b46decd3bb6158714927cab208..3aee507574eff07f720c5d0faef432655bfc54c3 100644 (file)
@@ -19,11 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
 // quakedef.h -- primary header for client
 
-//#define      GLTEST                  // experimental stuff
-
 #define        QUAKE_GAME                      // as opposed to utilities
 
-#define        VERSION                         1.05
+#define        VERSION                         1.50
+extern int buildnumber;
 
 #ifndef FALSE
 #define FALSE 0
@@ -31,6 +30,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #endif
 
 //define       PARANOID                        // speed sapping error checking
+#ifdef _DEBUG
+#define ASSERT(condition) if (!(condition)) Sys_Error("assertion (##condition) failed at " __FILE__ ":" __LINE__ "\n");
+#else
+#define ASSERT(condition)
+#endif
 
 #define        GAMENAME        "id1"
 
@@ -43,8 +47,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 #define UNUSED(x)      (x = x) // for pesky compiler / lint warnings
 
-#define        MINIMUM_MEMORY                  0x550000
-#define        MINIMUM_MEMORY_LEVELPAK (MINIMUM_MEMORY + 0x100000)
+// LordHavoc: default heap size (unless -heapsize (win32 only) or -mem is used), in megabytes
+#define DEFAULTMEM 24
+//#define      MINIMUM_MEMORY                  0x550000
+//#define      MINIMUM_MEMORY_LEVELPAK (MINIMUM_MEMORY + 0x100000)
 
 #define MAX_NUM_ARGVS  50
 
@@ -260,16 +266,17 @@ extern    cvar_t          developer;
 
 extern qboolean        host_initialized;               // true if into command execution
 extern double          host_frametime;
-extern byte            *host_basepal;
-extern byte            *host_colormap;
+extern double          host_realframetime;     // LordHavoc: the real frametime, before slowmo and clamping are applied (used for console scrolling)
 extern int                     host_framecount;        // incremented every frame, never reset
 extern double          realtime;                       // not bounded in any way, changed at
                                                                                // start of every frame, never reset
 
+extern double          sv_frametime;
+
 void Host_ClearMemory (void);
 void Host_ServerFrame (void);
 void Host_InitCommands (void);
-void Host_Init (quakeparms_t *parms);
+void Host_Init ();
 void Host_Shutdown(void);
 void Host_Error (char *error, ...);
 void Host_EndGame (char *message, ...);
@@ -296,3 +303,8 @@ extern      cvar_t  chase_active;
 void Chase_Init (void);
 void Chase_Reset (void);
 void Chase_Update (void);
+
+void fractalnoise(unsigned char *noise, int size, int startgrid);
+
+#include "palette.h"
+#include "image.h"