]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - quakedef.h
smoke trails changed again, smoke texture greatly improved
[xonotic/darkplaces.git] / quakedef.h
index 5a8d932b4af7a4b46decd3bb6158714927cab208..899886de0ef01cf5f590c0b797c43ed3b79a3697 100644 (file)
@@ -19,11 +19,9 @@ 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
 
 #ifndef FALSE
 #define FALSE 0
@@ -31,6 +29,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"
 
@@ -260,16 +263,16 @@ 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 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 +299,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"