Ozkan Sezer
396167e0c7
pr_exec.c (PR_ExecuteProgram): Implemented some of LordHavoc's
...
optimizations mostly by removing the temporary eval_t *a,*b and *c
variables and replacing them by OPA, OPB and OPC macros. Removed
the statement index s and used the statement pointer instead,
updating the pr_xstatement global whenever necessary. In OP_STATE,
stored OPA->_float to ed->v.frame without comparing them (I don't
understand the significance to the comparison.) Casted st->a, b
and c to unsigned short instead of using them signed as they are
as the pr_globals index value. Updated profiling code.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@505 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-12 09:03:34 +00:00
Ozkan Sezer
9ba7acffc4
pr_comp.h, pr_edict.c, progs.h, pr_cmds.c, pr_exec.c: made some of the
...
variables and functions private and did some whitespace tidy-ups.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@504 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-12 08:56:25 +00:00
Steven
9908d311e4
Make 'R_DrawSprite' error messages Con_DPrintf.
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@503 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-11-19 23:33:54 +00:00
Ozkan Sezer
58b8e509bd
net_udp.c: Fixed FIONREAD ioctl to take an int* argument instead of
...
an unsigned long*.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@502 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-11-12 18:03:49 +00:00
Ozkan Sezer
4ff1f1f5bb
recompiled SDL library from git snapshot a04171d6fa11 (2011-11-07, SDL-1.2 branch)
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@501 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-11-07 23:02:02 +00:00
Ozkan Sezer
199cc406ed
cd_sdl.c: Reverted the CDAudio_Update() change from 27 Oct: it does
...
not make things better. Removed the SDL_CDStatus() check before the
error message in case of SDL_CDPlay() failures: I don't really know
the significance to it and witnessed that it caused the error report
once, so I don't see any merit in its presence.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@500 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-10-30 16:56:03 +00:00
Ozkan Sezer
b774adc6df
windows codecs: Recompiled mpg123 from latest 1.13.4 release.
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@499 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-10-30 16:02:34 +00:00
Ozkan Sezer
0fd1150b47
cd_sdl.c: Simplified, making it similar to cd_linux.c or cd_bsd.c by
...
performing checks every two seconds in CDAudio_Update() and caching
the last check time.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@498 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-10-27 09:40:46 +00:00
Ozkan Sezer
433f753405
recompiled all windows x64 dlls using a new gcc-4.5-based toolchain.
...
also updated the SDL library to HG/1.2 branch 2011-10-14 with
patch from http://bugzilla.libsdl.org/show_bug.cgi?id=1254#c15 .
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@497 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-10-26 12:11:25 +00:00
Ozkan Sezer
f81edea23c
updated the user directories support patch
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@496 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-10-24 17:40:12 +00:00
Ozkan Sezer
3d69e67df0
in Sbar_DrawFace(), don't let the index derived off cl.stats[STAT_HEALTH]
...
to become negative. (noticed this in rmq some time ago...)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@495 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-10-19 20:10:49 +00:00
Ozkan Sezer
f648df89ef
moved README.music to top-level directory
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@494 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-10-19 19:33:23 +00:00
Ozkan Sezer
981eab5eba
cl_demo.c: Several tidy-ups and message corrections
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@493 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-10-09 08:51:29 +00:00
Ozkan Sezer
df47a63810
updated my systest tool from uhexen2
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@492 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-10-07 07:12:18 +00:00
Ozkan Sezer
187ec835c3
updated windows SDL libraries to HG/1.2 branch 2011-09-21 with two
...
patches applied:
http://bugzilla.libsdl.org/show_bug.cgi?id=1254#c15
http://bugzilla.libsdl.org/show_bug.cgi?id=1310
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@491 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-10-03 14:00:16 +00:00
Steven
f7ac5f80f4
Typo: scr_crosshaircale -> scr_crosshairscale (from Sander).
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@490 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-09-21 02:51:56 +00:00
Steven
8155c525b7
Update sndspeed cvar when it is changed from the command line (from Sander). Note in-game changes of the sound cvars don't change sound playback settings or behaviour.
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@489 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-09-20 22:45:52 +00:00
Ozkan Sezer
fef3a3d3d6
added IS_LOOP_DRIVER macro and made the confusing loop driver checks
...
more readable. from uhexen2.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@488 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-09-20 18:05:51 +00:00
Steven
fc70175239
Make the default fullscreen mode 800x600 (same as window default), from Sander.
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@487 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-09-20 06:41:36 +00:00
Ozkan Sezer
41124f6b5a
more ChangeLog updates
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@486 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-09-19 08:55:47 +00:00
Steven
2e507420e2
Update doco for minor changes.
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@485 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-09-18 04:24:22 +00:00
Ozkan Sezer
b9ee5bef26
gl_model.c: Added new external_ents cvar for Mod_LoadEntities()
...
in parallel to the old QIP code.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@484 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-09-15 07:51:11 +00:00
Ozkan Sezer
f43a0622f6
updated makefiles.
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@483 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-08-27 07:11:36 +00:00
Ozkan Sezer
6e1c84770d
updated snd_vorbis.c from the uhexen2 project: support for Tremor (libvorbisidec)
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@482 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-08-27 07:11:02 +00:00
Ozkan Sezer
6817f5bfc9
mlook and lookspring fixes by Jacques Krige :
...
http://www.quake-1.com/docs/quakesrc.org/1.html
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@481 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-08-25 21:37:34 +00:00
Steven
9b721b0a01
z-fighting (flickering gl texture clash most notable in e1m1) bug fix, from Sander.
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@480 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-08-24 07:47:29 +00:00
Ozkan Sezer
f8eb60ae3d
snd_mp3.c (S_MP3_CodecOpenStream): Don't Z_Free() stream's private
...
data when not allocating on the zone.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@479 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-08-21 09:10:52 +00:00
Ozkan Sezer
cf3c092a1d
recompiled all windows x64 libraries using the latest mingw-w64 v1.0 runtime rev.4360.
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@478 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-08-10 05:05:36 +00:00
Ozkan Sezer
c9f03fd1f3
updated my mk_header tool and added systest.
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@477 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-08-06 16:10:43 +00:00
Ozkan Sezer
0c82fbc646
console.c (LOG_Init): Removed the O_APPEND flag when opening the log file.
...
It was a legacy from Quake who used to open and close the log file on every
write. Commented out the unlink() call and added O_TRUNC to the open flags.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@476 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-08-03 19:30:37 +00:00
Ozkan Sezer
162f18573e
removed the LoadBufFile method
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@475 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-08-03 19:22:29 +00:00
Ozkan Sezer
a1f9567d0d
fixed vorbisfile link order at another place
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@474 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-07-21 09:20:45 +00:00
Ozkan Sezer
d06c58df33
deleted unused vorbisenc.h header from OSX port too
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@473 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-07-21 09:11:30 +00:00
Ozkan Sezer
3fd7356571
fixed vorbisfile link order for static linkage if one chooses to do so.
...
deleted unused vorbisenc.h header.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@472 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-07-21 09:03:35 +00:00
Ozkan Sezer
1b6fdd2b3d
snd_mp3.c: leave Z_ alone and allocate libmad decoding buffers (ca. 64kb)
...
on the system memory.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@471 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-07-20 09:00:12 +00:00
Ozkan Sezer
3ea2addc76
zone.c (Z_Realloc): If expanding size, zero-fill the expanded part
...
of the memory before returning, which is Z_Malloc() behavior.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@470 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-07-17 14:00:48 +00:00
Steven
fcb71434b7
Added a new OSX app. Update links in doco.
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@469 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-07-16 11:07:19 +00:00
Ozkan Sezer
2fa48afa9c
progs.h (PR_RunError): Mark the function as noreturn.
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@468 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-07-08 17:27:44 +00:00
Ozkan Sezer
729621c589
host.c (Host_ClearMemory): Do not check if host_hunklevel is
...
set before freeing the hunk allocations. The order in Host_Init()
is clear and Host_ClearMemory must not be hit before host_hunklevel
is set. (otherwise, there _will_ be much trouble...)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@467 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-07-05 06:50:23 +00:00
Ozkan Sezer
840d7376d5
host.c (Host_Init): Execute quake.rc _after_ setting host_hunklevel
...
and host_initialized.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@466 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-07-05 06:45:31 +00:00
Ozkan Sezer
09110d97b5
* Removed some useless memset calls onto newly hunk allocated memory.
...
Hunk_Alloc() already clears the memory before returning it.
* Some minor cleanups.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@465 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-07-05 06:28:42 +00:00
Ozkan Sezer
f340ea2687
Increased localmodels array size to 8 (better alignment)
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@464 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-06-28 11:33:23 +00:00
Ozkan Sezer
7dd3ee7a58
moved Host_Version_f from host_cmd.c to host.c.
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@463 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-06-27 13:20:52 +00:00
Ozkan Sezer
9052c6faa8
net_udp.c: check whether the address returned by gethostbyname is an IPv4 address
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@462 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-06-27 13:10:19 +00:00
Ozkan Sezer
e5a5e89f53
minor syncing with uhexen2
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@461 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-06-13 12:41:00 +00:00
Ozkan Sezer
701ae6882c
a little syncing with uhexen2.
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@460 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-06-12 12:25:22 +00:00
Ozkan Sezer
03bbe29d44
updated q_stdinc.h from uhexen2.
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@459 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-06-11 13:20:13 +00:00
Ozkan Sezer
e25c9d2716
gl_model.c (Mod_LoadEntities): Added support for loading external entity files.
...
Adding a cvar to control this option should follow later.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@458 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-06-11 05:03:04 +00:00
Steven
44ecfb19bb
Trial a new Freeze cvar.
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@457 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-06-10 03:04:51 +00:00
Ozkan Sezer
d546301342
Recompiled all windows x64 libraries using the latest mingw-w64 tools.
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@456 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-06-02 07:56:15 +00:00