PRVM: update program loading messages This was missed in cfee52a1ec9db338098789cae89ae5cf1f7a6fbf Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
PRVM: clarify tempstring messages Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
Work around Microsoft's broken vsnprintf implementation Microsoft's documentation says it has supported %zu (C99 standard format for size_t) for some years but trying to use it causes crashes at least on older versions of Windows. Makes dpsnprintf and dpvsnprintf documentation more accessible (these funcs have different return behaviour than the C standard ones). Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
PRVM: Fix a hack in LNO file loading This caused misaligned memory access. Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
PRVM: fix a use of strlcpy on an unterminated source This code is used when starting a QC program in a non-English language. See also 3727057b879ccfeaa434537f41a302f047e8cfae Also renames the dp_ustr2stp() parameter ssize to slen for clarity. Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
PRVM: optimise tempstring creation No need for strlen in PRVM_SetTempString(), usually we already have that information. Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
prvm_leaktest: fix trace string truncation This was caught by the new warnings. Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
com: rename BSD strlcpy and strlcat The C standard reserves str* and mem* for the implementation. Checking for BSD or OS X is not a robust way to determine if libc provides these (eg glibc may implement them). Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
PRVM: indicate which VM triggered some common string messages Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
Move QC extension reporting out of video initialisation Once at startup is enough, no need to do this during vid_restart (etc). Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
Add some physics-related comments Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
qdefs: Define separate FLOAT_ and DOUBLE_ versions of lossless format and true for int. Define PRVM_ prefixed aliases for either
edict: Move free and freetime into prvm_edict_t itself
prvm_edict: Spelling git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13052 d7cf8633-e32d-0410-b094-e92efae38249
prvm_edict: Add warning for attempting to load FTEQW progs while support is incomplete git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13046 d7cf8633-e32d-0410-b094-e92efae38249
prvm_edict: Link all edicts to the world when loaded from file. Fixes issue with some entities being spawned at world origin in Xonotic. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13041 d7cf8633-e32d-0410-b094-e92efae38249
Unify the command and cvar flags, under the CF_ prefix. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12923 d7cf8633-e32d-0410-b094-e92efae38249
Rename qboolean to qbool git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12920 d7cf8633-e32d-0410-b094-e92efae38249
Rename COM_CheckParm to Sys_CheckParm and move it to sys_shared.c git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12912 d7cf8633-e32d-0410-b094-e92efae38249
prvm: Initial experimental implementation of support for 32-bit progs offsets This implementation is may be incomplete and also includes some fixes to some opcodes. This shouldn't break anything in its current state. Thanks to Spoike for the patch. He also left a few comments on some compatibility issues DP ought to fix, which can be found by grepping "spike FIXME". git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12901 d7cf8633-e32d-0410-b094-e92efae38249