K_MIDINOTE125,
K_MIDINOTE126,
K_MIDINOTE127,
+
+ MAX_KEYS
}
keynum_t;
typedef enum keydest_e { key_game, key_message, key_menu, key_menu_grabbed, key_console, key_void } keydest_t;
-#define MAX_BINDMAPS 8
-#define MAX_KEYS 1024
extern char key_line[MAX_INPUTLINE];
extern int key_linepos;
extern qboolean key_insert; // insert key toggle (for editing)
static int modlist_cursor;
//static int modlist_viewcount;
-#define MODLIST_TOTALSIZE 256
static int modlist_count = 0;
static modlist_entry_t modlist[MODLIST_TOTALSIZE];
int element[2];
}
edgehashentry_t;
- static edgehashentry_t *edgehash[TRIANGLEEDGEHASH];
+ static edgehashentry_t **edgehash;
edgehashentry_t *edgehashentries, *hash;
if (!numtriangles)
return;
- memset(edgehash, 0, sizeof(edgehash));
+ edgehash = Mem_Alloc(tempmempool, TRIANGLEEDGEHASH * sizeof(*edgehash));
// if there are too many triangles for the stack array, allocate larger buffer
edgehashentries = (edgehashentry_t *)Mem_Alloc(tempmempool, numtriangles * 3 * sizeof(edgehashentry_t));
// find neighboring triangles
}
// free the allocated buffer
Mem_Free(edgehashentries);
+ Mem_Free(edgehash);
}
#else
// very slow but simple way
#ifndef QUAKEDEF_H
#define QUAKEDEF_H
+#define DP_SMALLMEMORY
+
/// on UNIX platforms we need to define this so that video saving does not cause a SIGFSZ (file size) signal when a video clip exceeds 2GB
#define _FILE_OFFSET_BITS 64
#define MAX_CACHED_PICS 1024 // this is 144 bytes each (or 152 on 64bit)
#define CACHEPICHASHSIZE 256
#define MAX_PARTICLEEFFECTNAME 256
-#define MAX_PARTICLEEFFECTINFO 2048
+#define MAX_PARTICLEEFFECTINFO 1024
#define MAX_PARTICLETEXTURES 96
#define MAXCLVIDEOS 1
#define MAX_GECKO_INSTANCES 1
#define MAXTRACKS 256
#define MAX_DYNAMIC_CHANNELS 64
#define MAX_CHANNELS 260
+#define MODLIST_TOTALSIZE 32
+#define MAX_FAVORITESERVERS 32
+#define MAX_DECALSYSTEM_QUEUE 64
+#define PAINTBUFFER_SIZE 512
+#define MAX_BINDMAPS 8
#else
#define MAX_INPUTLINE 16384 ///< maximum length of console commandline, QuakeC strings, and many other text processing buffers
#define CON_TEXTSIZE 1048576 ///< max scrollback buffer characters in console
// NUM_AMBIENTS + MAX_DYNAMIC_CHANNELS to total_channels = static sounds
#define MAX_DYNAMIC_CHANNELS 512
#define MAX_CHANNELS 1028
+#define MODLIST_TOTALSIZE 256
+#define MAX_FAVORITESERVERS 256
+#define MAX_DECALSYSTEM_QUEUE 1024
+#define PAINTBUFFER_SIZE 2048
+#define MAX_BINDMAPS 8
#endif
{
int sample[SND_LISTENERS];
} portable_sampleframe_t;
-// LordHavoc: was 512, expanded to 2048
-#define PAINTBUFFER_SIZE 2048
typedef struct listener_s
{