quakespasm/Quake
Ozkan Sezer de4bea0e74 Loadgame_f() may go past sv.num_edicts, but it does not go through
ED_Alloc(), therefore such ents will have uninitialized members.
This used to lead to bad crashes with e.g. Rubicon Rumble Pack maps
since svn r1286 when we began allocating sv.edicts using malloc and
only zero-filling when necessary.  So, check against sv.num_edicts
and zero-fill the ent properly when necessary.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1318 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-06-24 16:04:25 +00:00
..
Makefile remove SDL_net support which had been unsupported for some time 2014-09-20 20:37:35 +00:00
Makefile.darwin change windows makefiles so that they aren't for cross-building by default; 2015-03-02 22:04:26 +00:00
Makefile.w32 windows: use target-specfic flags for gcc too (-m32/-m64). hmph.. 2016-04-18 14:01:55 +00:00
Makefile.w64 windows: use target-specfic flags for gcc too (-m32/-m64). hmph.. 2016-04-18 14:01:55 +00:00
anorm_dots.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
anorms.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
arch_def.h arch_def.h: update from uhexen2. 2014-07-11 07:06:15 +00:00
bgmusic.c bgmusic.c (BGM_UpdateStream): avoid a possible endless loop. 2016-06-23 08:03:43 +00:00
bgmusic.h some codec stuff syncing with uhexen2 2013-02-27 16:50:25 +00:00
bspfile.h limit increases to handle oms3 map pack. 2016-06-24 06:15:33 +00:00
build_cross_osx-sdl2.sh Makefile.darwin: target 10.5 when building for x86 against SDL2. 2014-09-17 11:00:28 +00:00
build_cross_osx.sh - Makefile.darwin: -mmacosx-version-min also needs to be among 2012-09-03 21:21:04 +00:00
build_cross_win32-sdl2.sh fix the cross-build scripts after r1180. 2015-03-02 22:01:12 +00:00
build_cross_win32.sh fix the cross-build scripts after r1180. 2015-03-02 22:01:12 +00:00
build_cross_win64-sdl2.sh fix the cross-build scripts after r1180. 2015-03-02 22:01:12 +00:00
build_cross_win64.sh fix the cross-build scripts after r1180. 2015-03-02 22:01:12 +00:00
cd_null.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
cd_sdl.c sdl: Make our error checking for SDL_Init(SubSystem) consistent with the SDL wiki/test programs. 2014-10-18 16:33:01 +00:00
cdaudio.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
cfgfile.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
cfgfile.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
chase.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
cl_demo.c silence pesky warnings from old compilers 2016-06-24 07:40:08 +00:00
cl_input.c RMQ protocol (999) support, adapted from RMQEngine 2016-06-24 06:15:41 +00:00
cl_main.c CL_Tracepos_f: fix wrong trace endpoint (developer function added in Fitzquake) 2016-05-21 19:50:03 +00:00
cl_parse.c RMQ protocol (999) support, adapted from RMQEngine 2016-06-24 06:15:41 +00:00
cl_tent.c RMQ protocol (999) support, adapted from RMQEngine 2016-06-24 06:15:41 +00:00
client.h RMQ protocol (999) support, adapted from RMQEngine 2016-06-24 06:15:41 +00:00
cmd.c prevent a possible buffer overflow in Cbuf_Execute (an old q1/q2 issue this was.) 2015-08-23 09:56:31 +00:00
cmd.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
common.c RMQ protocol (999) support, adapted from RMQEngine 2016-06-24 06:15:41 +00:00
common.h RMQ protocol (999) support, adapted from RMQEngine 2016-06-24 06:15:41 +00:00
console.c constify arg_completion_type_t->command 2015-08-23 09:51:35 +00:00
console.h Make "exceeds standard limit of" messages only display when developer cvar is set, with a new Con_DWarning function. 2015-05-25 01:48:03 +00:00
crc.c
crc.h
cvar.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
cvar.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
detect.sh Updated support for building the OSX versions using Makefile.darwin. Do 2012-08-16 04:51:41 +00:00
draw.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
gl_draw.c SDL2 Game Controller support 2016-03-01 21:58:08 +00:00
gl_fog.c Fog: move setting of GL_FOG_MODE to GL_EXP2 to a new Fog_SetupState() function and call it in VID_Restart. 2015-11-26 09:06:42 +00:00
gl_mesh.c Alias model VBO renderer: restructure so each model is stored in a separate VBO and load them in Mod_LoadAliasModel, rather than R_NewMap. 2015-09-20 20:10:49 +00:00
gl_model.c Fixed -Wmisleading-indentation warnings from new gcc6. 2016-04-28 21:47:12 +00:00
gl_model.h Alias model VBO renderer: restructure so each model is stored in a separate VBO and load them in Mod_LoadAliasModel, rather than R_NewMap. 2015-09-20 20:10:49 +00:00
gl_refrag.c Make "exceeds standard limit of" messages only display when developer cvar is set, with a new Con_DWarning function. 2015-05-25 01:48:03 +00:00
gl_rlight.c world.c: use DoublePrecisionDotProduct to fix items falling out of the world 2016-02-01 22:41:15 +00:00
gl_rmain.c Contrast support with a "contrast" cvar, behaving the same as MarkV's. 2016-02-12 23:26:36 +00:00
gl_rmisc.c Alias model VBO renderer: restructure so each model is stored in a separate VBO and load them in Mod_LoadAliasModel, rather than R_NewMap. 2015-09-20 20:10:49 +00:00
gl_screen.c SDL2 Game Controller support 2016-03-01 21:58:08 +00:00
gl_sky.c new cvars: r_lavaalpha, r_slimealpha, r_telealpha for fine-tuning specific liquid opacities (from DirectQ, RMQEngine) 2015-07-26 21:51:25 +00:00
gl_texmgr.c fix C++11 -Wliteral-suffix warnings. fix -Wnarrowing errors/warnings. 2016-04-29 20:00:50 +00:00
gl_texmgr.h GLSLGamma_GammaCorrect: clear the cached texture binding in GL_Bind properly, after the glBindTexture calls earlier in this function. 2015-12-13 07:23:04 +00:00
gl_vidsdl.c Fixed -Wmisleading-indentation warnings from new gcc6. 2016-04-28 21:47:12 +00:00
gl_warp.c R_UpdateWarpTextures: workaround osx 10.6 driver bug when using FSAA, reported by Barnak. 2016-02-26 07:37:00 +00:00
gl_warp_sin.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
glquake.h limit increases to handle oms3 map pack. 2016-06-24 06:15:33 +00:00
host.c fix C++11 -Wliteral-suffix warnings. fix -Wnarrowing errors/warnings. 2016-04-29 20:00:50 +00:00
host_cmd.c Loadgame_f() may go past sv.num_edicts, but it does not go through 2016-06-24 16:04:25 +00:00
image.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
image.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
in_sdl.c fix C++11 -Wliteral-suffix warnings. fix -Wnarrowing errors/warnings. 2016-04-29 20:00:50 +00:00
input.h SDL2 Game Controller support 2016-03-01 21:58:08 +00:00
keys.c SDL2 Game Controller support 2016-03-01 21:58:08 +00:00
keys.h SDL2 Game Controller support 2016-03-01 21:58:08 +00:00
main_sdl.c Raise default heapsize to 256MB and zone to 4MB (matching Fitz MarkV) 2016-01-09 20:29:22 +00:00
mathlib.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
mathlib.h world.c: use DoublePrecisionDotProduct to fix items falling out of the world 2016-02-01 22:41:15 +00:00
menu.c SDL2 Game Controller support 2016-03-01 21:58:08 +00:00
menu.h Rename some (recently added) functions. 2014-10-08 18:30:17 +00:00
modelgen.h
net.h constify NET_QSocketGetTime() and NET_QSocketGetAddressString() 2015-04-01 09:30:10 +00:00
net_bsd.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
net_defs.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
net_dgrm.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
net_dgrm.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
net_loop.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
net_loop.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
net_main.c constify NET_QSocketGetTime() and NET_QSocketGetAddressString() 2015-04-01 09:30:10 +00:00
net_sys.h sync net_sys.h with the uhexen2 tree. 2016-05-31 20:01:09 +00:00
net_udp.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
net_udp.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
net_win.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
net_wins.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
net_wins.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
net_wipx.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
net_wipx.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
pl_linux.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
pl_osx.m copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
pl_win.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
platform.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
pr_cmds.c RMQ protocol (999) support, adapted from RMQEngine 2016-06-24 06:15:41 +00:00
pr_comp.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
pr_edict.c SV_SpawnServer: use malloc for sv.edicts, and only zero it as needed 2016-01-29 01:05:11 +00:00
pr_exec.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
progdefs.h
progdefs.q1
progs.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
protocol.h RMQ protocol (999) support, adapted from RMQEngine 2016-06-24 06:15:41 +00:00
q_ctype.h replace all ctype.h functions/macros and strcasecmp/strncasecmp() 2013-09-25 17:01:40 +00:00
q_sound.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
q_stdinc.h a few more minor stuff from uhexen2 svn 2014-10-31 13:03:20 +00:00
qs_bmp.h Simplify the linux icon transparency setting. 2012-09-25 03:07:33 +00:00
quakedef.h change version to 0.92.0 2016-06-24 07:04:11 +00:00
quakespasm.pak SDL2 Game Controller support 2016-03-01 21:58:08 +00:00
r_alias.c Alias model VBO renderer: restructure so each model is stored in a separate VBO and load them in Mod_LoadAliasModel, rather than R_NewMap. 2015-09-20 20:10:49 +00:00
r_brush.c Fixed -Wmisleading-indentation warnings from new gcc6. 2016-04-28 21:47:12 +00:00
r_part.c RMQ protocol (999) support, adapted from RMQEngine 2016-06-24 06:15:41 +00:00
r_sprite.c r_alias.c, r_sprite.c: print the model name in the "no such skin" (r_alias.c) and "no such frame" (r_sprite.c) developer messages 2015-08-31 18:36:38 +00:00
r_world.c new cvars: r_lavaalpha, r_slimealpha, r_telealpha for fine-tuning specific liquid opacities (from DirectQ, RMQEngine) 2015-07-26 21:51:25 +00:00
render.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
resource.h
sbar.c Sbar_DrawPicAlpha: change glColor3f call to glColor4f with explicit alpha of 1 to work around intel 855 bug, which also affected Fitzquake 0.85. 2015-10-06 06:18:30 +00:00
sbar.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
screen.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
server.h RMQ protocol (999) support, adapted from RMQEngine 2016-06-24 06:15:41 +00:00
snd_codec.c replace all ctype.h functions/macros and strcasecmp/strncasecmp() 2013-09-25 17:01:40 +00:00
snd_codec.h Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_codeci.h Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_dma.c snd_dma.c: raise MAX_SFX to 1024, for the upcoming arcadim mod. 2015-12-22 06:22:29 +00:00
snd_flac.c snd_flac.c, snd_mpg123.c: fix incorrect usage of decoder function 2015-02-19 08:37:13 +00:00
snd_flac.h added flac music support. 2013-07-21 14:02:06 +00:00
snd_mem.c Move more spammy message from "developer 1" to "developer 2", continued: 2015-05-25 18:38:37 +00:00
snd_mikmod.c snd_mikmod.c: compile-time sanity checks for libmikmod version. 2013-12-27 12:00:21 +00:00
snd_mikmod.h Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_mix.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
snd_modplug.c Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_modplug.h Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_mp3.c snd_mp3.c: applied a patch to skip APEv2 tags 2015-07-13 06:37:02 +00:00
snd_mp3.h * snd_mpg123.c: added new codec for mp3 playback using libmpg123 as 2011-02-14 20:02:52 +00:00
snd_mpg123.c snd_flac.c, snd_mpg123.c: fix incorrect usage of decoder function 2015-02-19 08:37:13 +00:00
snd_opus.c Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_opus.h merged the opus codec support patch 2013-07-18 07:03:11 +00:00
snd_sdl.c snd_sdl.c: remove superfluous SDL_PauseAudio() and SDL_LockAudio() calls from the Shutdown() proc. 2015-02-27 14:01:23 +00:00
snd_umx.c snd_umx: minor update from umr. minor correction to fshandle offset. 2014-02-11 20:00:35 +00:00
snd_umx.h Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_vorbis.c sync a few minor stuff with uhexen2 svn 2014-10-30 18:00:06 +00:00
snd_vorbis.h some codec stuff syncing with uhexen2 2013-02-27 16:50:25 +00:00
snd_wave.c Merge several FS_* and snd_codec* layer updates from uhexen2 tree: 2013-09-25 11:01:12 +00:00
snd_wave.h Backported external music files support using decoder libraries and the 2011-01-05 19:50:43 +00:00
spritegn.h
strl_fn.h added strlcat.c and strlcpy.c: will use them later. 2011-12-27 11:03:39 +00:00
strlcat.c added strlcat.c and strlcpy.c: will use them later. 2011-12-27 11:03:39 +00:00
strlcpy.c added strlcat.c and strlcpy.c: will use them later. 2011-12-27 11:03:39 +00:00
sv_main.c add -protocol [15/666/999] command line flag, patch from szo 2016-06-24 06:15:47 +00:00
sv_move.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
sv_phys.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
sv_user.c RMQ protocol (999) support, adapted from RMQEngine 2016-06-24 06:15:41 +00:00
sys.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
sys_sdl_unix.c SDL2 Game Controller support 2016-03-01 21:58:08 +00:00
sys_sdl_win.c SDL2 Game Controller support 2016-03-01 21:58:08 +00:00
vid.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
view.c RMQ protocol (999) support, adapted from RMQEngine 2016-06-24 06:15:41 +00:00
view.h Contrast support with a "contrast" cvar, behaving the same as MarkV's. 2016-02-12 23:26:36 +00:00
wad.c copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
wad.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
world.c world.c: use DoublePrecisionDotProduct to fix items falling out of the world 2016-02-01 22:41:15 +00:00
world.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
wsaerror.h
zone.c Raise default heapsize to 256MB and zone to 4MB (matching Fitz MarkV) 2016-01-09 20:29:22 +00:00
zone.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00