quakespasm/Quake
Andrei Drexler 0b30541ab9 Replace manual demo cdtrack parsing with evil fscanf
This fixes the missing music in hipdemo1 caused by a leading space
character before the cdtrack number, which ended up being parsed
incorrectly.  https://github.com/andrei-drexler/ironwail/issues/60

Note: original issue with fscanf (mentioned in the code comments)
was caused by the inclusion of the newline in the format string.
We work around it by reading the newline character separately.
2022-04-02 11:50:10 +03: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 added _WINSOCK_DEPRECATED_NO_WARNINGS among the preprocessor definitions 2017-02-14 11:00:29 +00:00
bgmusic.c Updates for tracker music: 2021-02-04 23:28:00 +03:00
bgmusic.h some codec stuff syncing with uhexen2 2013-02-27 16:50:25 +00:00
bspfile.h q64 rerelease 2021 bsp support 2021-09-02 20:50:50 +03: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 cd_sdl.c: change SDL_CD error return checks from '== -1' back to '< 0' 2018-03-13 08:50:03 +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 Replace manual demo cdtrack parsing with evil fscanf 2022-04-02 11:50:10 +03:00
cl_input.c Revert "always run" changes from r797; move the QuakeSpasm customizations to a new "cl_alwaysrun" cvar. 2017-08-23 06:00:20 +00:00
cl_main.c Quad/pentagram dlights for 2021 rerelease 2022-03-11 23:55:10 +03:00
cl_parse.c Fix intermission camera angles during demo playback 2022-03-01 11:20:10 +03:00
cl_tent.c RMQ protocol (999) support, adapted from RMQEngine 2016-06-24 06:15:41 +00:00
client.h Revert "always run" changes from r797; move the QuakeSpasm customizations to a new "cl_alwaysrun" cvar. 2017-08-23 06:00:20 +00:00
cmd.c workaround re-release default.cfg issue: 2021-08-29 14:55:24 +03:00
cmd.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
common.c Skip leading whitespace in Q_atoi and Q_atof 2022-01-09 01:25:50 +03:00
common.h Change STRUCT_FROM_LINK to avoid potential undefined behavior 2022-03-01 11:20:10 +03:00
console.c console.c (Con_TabComplete): don't change the length counter in arg completion. 2018-02-16 05:57:54 +00:00
console.h revise the function attributes usage: do not use the gcc __attribute__ 2017-07-28 12:50:10 +00:00
crc.c CRC_Block: make input pointer const. From QS-Spike 2017-04-02 07:14:53 +00:00
crc.h CRC_Block: make input pointer const. From QS-Spike 2017-04-02 07:14:53 +00:00
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
default_cfg.h workaround re-release default.cfg issue: 2021-08-29 14:55:24 +03: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
filenames.h sync'ed arch_defs.h and filenames.h with uhexen2 tree (for sake of symmetry.) 2016-12-07 06:55:04 +00:00
gl_draw.c "W007: '&array' may not produce intended result" Watcom warning fixes. 2017-09-17 08:00:32 +00:00
gl_fog.c minor simplification 2019-09-12 12:33:02 +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 Allow loading textures not aligned to 16 pixels 2021-12-04 11:11:10 +03:00
gl_model.h Mod_PointInLeaf: make declaration match its definition. 2022-03-29 23:02:02 +03:00
gl_refrag.c gl_refrag.c: Hunk-allocate efrags and trim out unused functionality 2017-04-02 19:39:18 +00:00
gl_rlight.c Fix pitch black models in lit areas in DOTM (mg1). 2021-09-20 11:55:10 +03:00
gl_rmain.c move DEG2RAD macro to mathlib.h. 2022-03-11 23:55:10 +03:00
gl_rmisc.c Merge surface mark & cull optimization from vkQuake 2021-07-07 23:55:50 +03:00
gl_screen.c Compensate viewmodel distortion at fov > 90 2021-09-02 20:50:50 +03:00
gl_sky.c Handle sky textures with non-standard sizes 2021-12-05 14:10:50 +02:00
gl_texmgr.c Raised MAX_GLTEXTURES limit from 2048 to 4096 for now per Eric's request 2021-08-31 15:50:28 +03:00
gl_texmgr.h gl_texmgr.h (struct gltexture_s): change 'pants' and 'shirt' to signed char 2018-06-18 07:15:58 +00:00
gl_vidsdl.c Raise window after showing it 2022-03-01 11:20:10 +03:00
gl_warp.c Replace some uses of 9999/-9999, and 999999/-999999 with FLT_MAX/-FLT_MAX 2020-03-28 05:09:09 +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 q64 sky texture now display correctly 2021-09-03 01:37:50 -04:00
host.c Add 'horde' cvar (for 2021 rerelease) 2022-03-01 11:20:10 +03:00
host_cmd.c host_cmd.c: make a lot of procedures static. 2021-10-01 11:10:04 +03:00
image.c update lodepng to 20190814 version from mainstream. 2019-08-15 12:01:54 +00:00
image.h - stb_image_write.h: keep only the jpg writer, the only thing we use 2017-08-09 11:33:44 +00:00
in_sdl.c Fix mouse input truncation with non-integral sensitivity 2022-03-11 23:55:10 +03:00
input.h SDL2 Game Controller support 2016-03-01 21:58:08 +00:00
keys.c Key_Console: change strcpy to memmove for K_UPARROW and K_DOWNARROW 2022-03-31 23:02:20 +03:00
keys.h keys.c: increase CMDLINES (history.txt lines) from 32 to 64 2018-01-10 04:40:31 +00:00
lodepng.c lodepng: fixed MSVC C4334 warnings in 64 bit builds 2022-03-26 05:00:32 +03:00
lodepng.h update lodepng to 20220109 version from mainstream. 2022-03-01 14:20:02 +03:00
main_sdl.c don't write the config file if we are Sys_Error()ing 2018-02-21 07:33:07 +00:00
Makefile add back snd_modplug (disabled, for future ref.), update project files. 2022-03-29 17:04:02 +03:00
Makefile.darwin add back snd_modplug (disabled, for future ref.), update project files. 2022-03-29 17:04:02 +03:00
Makefile.w32 add back snd_modplug (disabled, for future ref.), update project files. 2022-03-29 17:04:02 +03:00
Makefile.w64 add back snd_modplug (disabled, for future ref.), update project files. 2022-03-29 17:04:02 +03:00
Makefile.wat add back snd_modplug (disabled, for future ref.), update project files. 2022-03-29 17:04:02 +03:00
mathlib.c move DEG2RAD macro to mathlib.h. 2022-03-11 23:55:10 +03:00
mathlib.h move DEG2RAD macro to mathlib.h. 2022-03-11 23:55:10 +03:00
menu.c Add no-op menu_credits command for quake '2021 release' version 2021-08-24 14:24:24 +03:00
menu.h Rename some (recently added) functions. 2014-10-08 18:30:17 +00:00
miniz.c miniz updates: 2022-03-01 11:56:10 +03:00
miniz.h miniz: updates from mainstream PR/159 2022-01-27 08:10:04 +03:00
modelgen.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
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 net_defs.h: add a preprocessor assertion that NET_MAXMESSAGE is sane 2017-04-02 00:45:00 +00:00
net_dgrm.c Spelling fixes 2020-12-22 12:05:37 +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 minor updates to some files from uhexen2 (for sake of symmetry between the two trees.) 2016-08-23 11:24:24 +00:00
net_udp.c net_udp.c (UDP_Init): lose the goto in OSX workaround, restrict the workaround to OSX builds only. 2018-04-20 14:35:32 +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 net_wins.c: disable WSA*BlockingHook() stuff for winsock2 builds 2017-07-29 00:35:03 +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 silence a few macOS deprecation warnings. 2021-06-28 03:01:02 +03: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 Tweak PF_findradius 2022-03-01 11:20:10 +03: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 Quad/pentagram dlights for 2021 rerelease 2022-03-11 23:55:10 +03:00
pr_exec.c pr_exec.c, MAX_STACK_DEPTH: increase from 32 to 64 2017-06-23 15:47:01 +00:00
progdefs.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
progdefs.q1 initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
progs.h move the watcom 'aborts' pragma after function declarations. 2017-09-16 19:50:12 +00:00
protocol.h ignore svc_achievement server message for quake '2021 release' version. 2021-08-22 18:55:02 +03:00
q_ctype.h minor updates to some files from uhexen2 (for sake of symmetry between the two trees.) 2016-08-23 11:24:24 +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 use _Static_assert for COMPILE_TIME_ASSERT if available 2022-03-31 17:01:02 +03:00
qs_bmp.h Simplify the linux icon transparency setting. 2012-09-25 03:07:33 +00:00
quakedef.h bump version to 0.94.3, update documents. 2021-12-05 15:11:10 +03:00
quakespasm.pak Versioned map entity patches 2021-08-29 14:55:10 +03:00
r_alias.c Start the light trace for alias models from slightly above their origin 2021-09-20 11:55:10 +03:00
r_brush.c Fix lightmap issues after vkQuake surface mark/cull optimizations merge 2021-09-04 20:28:24 +03:00
r_part.c r_part.c (R_ReadPointFile_f): silence pesky compiler warnings 2017-07-28 20:00:32 +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 Merge surface mark & cull optimization from vkQuake 2021-07-07 23:55:50 +03:00
render.h gl_refrag.c: Hunk-allocate efrags and trim out unused functionality 2017-04-02 19:39:18 +00:00
resource.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
sbar.c Fixed -Wformat-length warning from experimental gcc-7: 2016-10-07 20:00:27 +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 map MOVETYPE_GIB of quake '2021 release' version to MOVETYPE_BOUNCE 2021-08-22 18:55:02 +03:00
snd_codec.c add back snd_modplug (disabled, for future ref.), update project files. 2022-03-29 17:04:02 +03:00
snd_codec.h Updates for tracker music: 2021-02-04 23:28:00 +03:00
snd_codeci.h Updates for tracker music: 2021-02-04 23:28:00 +03: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 Updates for tracker music: 2021-02-04 23:28:00 +03: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 Updates for tracker music: 2021-02-04 23:28:00 +03: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 snd_mix.c: Fix clang warnings about bit-shifting negative numbers 2017-07-28 20:50:03 +00:00
snd_modplug.c add back snd_modplug (disabled, for future ref.), update project files. 2022-03-29 17:04:02 +03:00
snd_modplug.h add back snd_modplug (disabled, for future ref.), update project files. 2022-03-29 17:04:02 +03:00
snd_mp3.c Updates for tracker music: 2021-02-04 23:28:00 +03:00
snd_mp3.h snd_mp3.c: moved mp3 tag stuff into a separate module snd_mp3tag.c 2019-12-12 11:37:32 +00:00
snd_mp3tag.c snd_mp3tag.c: check for false positives if id3v1 is not at file's end. 2019-12-29 16:50:06 +00:00
snd_mpg123.c Updates for tracker music: 2021-02-04 23:28:00 +03:00
snd_opus.c Updates for tracker music: 2021-02-04 23:28:00 +03:00
snd_opus.h merged the opus codec support patch 2013-07-18 07:03:11 +00:00
snd_sdl.c snd_sdl.c: pass NULL as the 'obtained' spec to SDL_OpenAudio(): 2019-09-20 18:40:00 +00:00
snd_umx.c snd_umx.c (get_objtype): make sure that 'sig' array is initialized. 2022-03-21 20:21:24 +03: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 Updates for tracker music: 2021-02-04 23:28:00 +03:00
snd_vorbis.h some codec stuff syncing with uhexen2 2013-02-27 16:50:25 +00:00
snd_wave.c Updates for tracker music: 2021-02-04 23:28:00 +03:00
snd_wave.h Backported external music files support using decoder libraries and the 2011-01-05 19:50:43 +00:00
snd_xmp.c Updates for tracker music: 2021-02-04 23:28:00 +03:00
snd_xmp.h added tracker music support using libxmp >= v4.2.0 (off by default.) 2016-12-07 09:24:49 +00:00
spritegn.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
stb_image_write.h Some more image.c / lodepng / stb_image_write clean-ups: 2017-08-09 20:00:08 +00:00
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 Quad/pentagram dlights for 2021 rerelease 2022-03-11 23:55:10 +03:00
sv_move.c sv_move.c: add explicit int cast to a float argument to abs(). 2017-07-28 20:50:25 +00:00
sv_phys.c map MOVETYPE_GIB of quake '2021 release' version to MOVETYPE_BOUNCE 2021-08-22 18:55:02 +03:00
sv_user.c RMQ protocol (999) support, adapted from RMQEngine 2016-06-24 06:15:41 +00:00
sys.h noreturn functions: use the 'aborts' aux pragma with Watcom 2017-07-28 20:11:03 +00:00
sys_sdl_unix.c don't write the config file if we are Sys_Error()ing 2018-02-21 07:33:07 +00:00
sys_sdl_win.c don't write the config file if we are Sys_Error()ing 2018-02-21 07:33:07 +00:00
vid.h Com_game_f: try execing quake.rc automatically.. 2017-06-23 22:02:49 +00:00
view.c Fix intermission camera angles during demo playback 2022-03-01 11:20:10 +03:00
view.h Fix intermission camera angles during demo playback 2022-03-01 11:20:10 +03:00
wad.c W_LoadWadFile, COM_CheckRegistered: more helpful error messages 2017-08-14 04:10:32 +00:00
wad.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
world.c SV_TouchLinks: new workaround for touch functions that modify the 2017-08-28 02:15:04 +00:00
world.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00
wsaerror.h * arch_def.h, net_sys.h, wsaerror.h: New headers, adapted from uhexen2. 2010-06-21 10:55:21 +00:00
zone.c Spelling fixes 2020-12-22 12:05:37 +00:00
zone.h copyright years, general tidy-up, remove unused d_ifacea.h. 2014-09-22 08:55:46 +00:00