Commit Graph

820 Commits

Author SHA1 Message Date
Ragnvald Maartmann-Moe IV 5e6f77cddb Instead of glEnable/glDisable (GL_ALPHA_TEST) pairs for every sprite rendered, let's do it once for the entire sprite loop. Minor hit when there are no sprites, but 2+ it's a gain. Better worst case, rather than better peak performance. 2001-10-02 01:48:51 +00:00
Ragnvald Maartmann-Moe IV 63ac10dfde Clean up glDepthFunc and glDepthRange so it's properly initted, and not set needlessly every frame. 2001-10-02 00:01:05 +00:00
Ragnvald Maartmann-Moe IV 4b3c4e1eaf Whitespace. 2001-10-01 21:52:05 +00:00
Ragnvald Maartmann-Moe IV fce4b903eb Fix double joystick init in sdl targets. 2001-10-01 21:50:35 +00:00
Bill Currie a4714175dd update the screen directly when printing rather than using C_DrawOutput.
Resizing still seems to work updates are much faster.
2001-10-01 16:09:06 +00:00
Bill Currie 77cf9439d0 getting closer to a properly resizing console 2001-10-01 06:49:59 +00:00
Bill Currie f505e8630c fixes for rh 7.1 2001-09-30 23:24:53 +00:00
Chris Ison b0dc19310a more compile under cygwin patches 2001-09-30 13:05:20 +00:00
Bill Currie 53529ae940 output window now updates when resizing, but it doesn't /quit/ work properly
(issue with starting line).
2001-09-30 05:59:33 +00:00
Chris Ison 60107fd19c changes to get cygwin to compile server. still debugging result 2001-09-29 09:39:27 +00:00
Bill Currie 138a4a1c14 rename console_t to old_console_t in preparation for a better version and
temporarily disable the client console plugin as it currently doesn't
compile.
2001-09-29 04:24:04 +00:00
Adam Olsen e12f1dcf9e - boundscheck static progs strings, and give proper errors for that
and dynamic strings if it fails.
2001-09-28 23:34:49 +00:00
Bill Currie f0244bece2 update the status bar on resize 2001-09-28 23:10:15 +00:00
Bill Currie c7031b20f3 move vid_fullcreen definition from *.c to vid.c and declaration from
context_x11.h to vid.h and remove all extern decls from *.c
2001-09-28 16:54:31 +00:00
Bill Currie 8e27422c72 partial fixes for mingw cross builds. still have issues with ar :( 2001-09-28 16:03:45 +00:00
Bill Currie 30f6d2f85c fix a case and paste error 2001-09-28 15:29:56 +00:00
Jeff Teunissen d63243380f Aaaaaaand, it's done!
Special note: I hope to never do this again. :)
2001-09-28 10:31:20 +00:00
Jeff Teunissen 873521a68d Makefile cleanup continues. Models. 2001-09-28 09:49:09 +00:00
Jeff Teunissen e892131af5 Rename gl_libgl to gl_driver, nuke the last of the HAVE_GLX references,
and default gl_driver to OPENGL32.DLL on Win32.
2001-09-28 07:41:38 +00:00
Jeff Teunissen e9c9c8bab6 fix up installs for -svga. 2001-09-28 06:55:27 +00:00
Bill Currie b1f4a778f9 the rcsid commit from hell }:> 2001-09-28 06:26:31 +00:00
Jeff Teunissen 31b6da027c The video version. This WILL break QW and NQ until my next commit. 2001-09-28 05:33:58 +00:00
Jeff Teunissen e6d7aec03a Build system updates/fixes for audio libs. MUCH cleaner, probably
faster, doesn't do anything unnecessary any more as far as I can tell.
2001-09-28 05:33:12 +00:00
Jeff Teunissen 325303b037 And now for the 32-bit software renderer. 2001-09-27 21:58:10 +00:00
Jeff Teunissen 4c40bad808 Okay, this ought to work for software. 2001-09-27 21:53:59 +00:00
Jeff Teunissen be9ee170d6 Okay, the GL renderer lib is fixed up. 2001-09-27 21:47:47 +00:00
Jeff Teunissen b794d4c316 yaay, cleaned up. 2001-09-27 21:28:44 +00:00
Bill Currie 37495db521 this should work for older alsa 0.9 where asoundlib.h is still in sys instead of alsa 2001-09-27 17:12:17 +00:00
Ragnvald Maartmann-Moe IV bd1465ef3e Make blood puffs a little less ridiculously large and not overly dense. 2001-09-27 06:52:38 +00:00
Ragnvald Maartmann-Moe IV 35b767cd21 Remove scaling from R_RunParticleEffect, and make blood puff size variable in qw. 2001-09-27 03:09:24 +00:00
Ragnvald Maartmann-Moe IV 2941c07b0a Add small cyan light to lightning impacts. And restore particle direction use in nq. Greatly improves blood effects. 2001-09-27 00:43:46 +00:00
Adam Olsen 376f05d357 - add some conversion builtins, now we have ftoi, ftos, itof, itos,
stof, stoi, stov, and vtos.
- fix PF_sprintf
- add FFnameFF support, where it tacks <userid> after the nick on the
  console.
2001-09-26 22:26:31 +00:00
Bill Currie ac58ecb10b windows get resized/moved properly now and the input line gets redrawn when
the terminal resizes. Still need to work on the status bar and output window
2001-09-26 18:08:30 +00:00
Bill Currie cb4f7eb808 various input line improvements 2001-09-26 16:31:36 +00:00
Bill Currie ca78b9ecd8 minor improvements in cursor location handling 2001-09-26 06:09:45 +00:00
Bill Currie e9e2bbf1c1 various fixes, most notably using windows instead of subwindows. This stops
the invalid memory accesses within ncurses when resizing.
2001-09-26 05:45:47 +00:00
Bill Currie 7b4e39053b update local info about the screen size 2001-09-25 23:33:37 +00:00
Chris Ison 0efd28abcc trying to get bootstrap to work in cygwin 2001-09-25 23:04:13 +00:00
Bill Currie a439170dcf libasm cleanups 2001-09-25 22:12:55 +00:00
Bill Currie 5195c065c6 do the resize signally properly 2001-09-25 20:35:37 +00:00
Bill Currie df330f33fd expernimental code to get window resizing working 2001-09-25 20:16:24 +00:00
Bill Currie ad4f29c6a8 clean up the buffer size calcs a bit 2001-09-25 16:32:00 +00:00
Bill Currie 3909176957 use the dynamic buffer for both curses and stdout 2001-09-25 16:19:26 +00:00
Bill Currie 9ffe53178c fix a char translation bug in the curses console and make the non-curses
console actually translate chars
2001-09-25 16:13:41 +00:00
Bill Currie 06da30ac89 mingw build fixes again (including mostly working in sid: got some link issues) 2001-09-25 06:18:30 +00:00
Bill Currie 36de3c147e move Sys_Quit and Sys_Error totally into libQFutil. They will call a list
of pre-registered (Sys_RegisterShutdown) function before actually exiting
the program. This should take care of the pain when an ncurses server
crashes.
2001-09-24 21:00:23 +00:00
Ragnvald Maartmann-Moe IV 5330fd5651 Whoops. 2001-09-24 18:03:36 +00:00
Ragnvald Maartmann-Moe IV e2f14519fb Merge world.h. Also reduced smoke particle textures from 8 to 1, a considerable speedup through reduced texture thrash... 2001-09-24 17:52:13 +00:00
Bill Currie c8ab7d04ef fix two bugs with glx extension checking: HAVE_GLX wasn't getting into
config.h and GLX_ARB_get_proc_address is not (any longer?) defined by mesa.
2001-09-23 03:41:05 +00:00
Ragnvald Maartmann-Moe IV d247027954 Use a callback for gl_multitexture which sets gl_mtex_active (now a qboolean, rather than a macro). 0.6-1.0% speedup. 2001-09-23 03:24:23 +00:00
Bill Currie bf1920a851 don't enable mtex if the required functions cannot be found. This shouldn't
normally happen, but is due to a currently broken QFGL_ExtensionAddress and
causes qf to seg when mtex is requested.
2001-09-23 03:18:58 +00:00
Adam Olsen 07b0d91900 - add a NUM_FOR_BAD_EDICT function, which doesn't care if it's a bad
value
- switch some prints over NUM_FOR_BAD_EDICT
- change NUM_FOR_EDICT to call PR_RunError on error, instead of
  PR_Error.  That was it prints out a backtrace.

(I did it in reverse order ;)
2001-09-23 01:29:52 +00:00
Adam Olsen a159e852e6 - add some comments to libs/console/inputline.c
- rename pr_deadbeef to pr_deadbeef_ents
- add pr_deadbeef_locals, which does uninited locals.  (crashes from
  it are undeniably buggy code, unlike pr_deadeef_ents)
- add a missing break to packetlog printing's switch
- add sv_kickfake, which kicks people for attempting to fake messages,
  or replaces the ^Ms with # if disabled.
2001-09-23 00:36:21 +00:00
Ragnvald Maartmann-Moe IV bb6796247c Kill r_particles->int_val testing in gl particle engine. Also merge a bit down to r_part.c/r_cvar.c. Properly declare cl_max_particles (how the heck was it working when only ever declared as exter cvar_t *cl_max_particles?).
Should be a minor speedup for gl, definitely a code cleanup.
2001-09-22 02:37:45 +00:00
Adam Olsen 9448063c67 - use etype_T instead of int (just so it's clearer in debugging) 2001-09-21 19:28:08 +00:00
Adam Olsen 8c89f65a98 - compile fix for building without curses 2001-09-21 17:28:35 +00:00
Bill Currie 49a85718f8 total nukage of Con_*Printf calls from libs (except for video). Sys_*Printf
(Sys_DPrintf is new) is now used exclusively for all lib printing. Con_Init
sets the sys printf recirection to Con_Print (which has been revamped
appropriatly) and the server sets it to SV_Print (which was SV_Printf and
the new SV_Printf calls /it/). This should fix the rcon print redirection
issues.
2001-09-21 04:22:46 +00:00
Adam Olsen f59c2a2a0b - build fix for without curses
- add a "zombie" line to edictcount, which is the number of ents that
  are "free" but not long enough to be reused.
2001-09-20 19:34:02 +00:00
Adam Olsen ca51e3be02 - cleanup of up/down key handling, as per suggestions from james
- add a sv_console_plugin cvar (guess what it does)
2001-09-20 15:14:44 +00:00
Adam Olsen 7195fe8ac7 - fix for ^@ in the history
- little cleanup
2001-09-20 08:12:28 +00:00
Adam Olsen 388c102a57 - fix buffer size reallocation
- fix history crash
2001-09-20 07:34:27 +00:00
Adam Olsen 0977b555f3 - build fix for without curses (untested, but should fix the problem I
had when I last tried)
- fix sv_filter_automask so it's not inverted (doh, again!)
- cleanups of ip filter prints
2001-09-20 06:51:25 +00:00
Ragnvald Maartmann-Moe IV fc1ab9640e r_numparticles is now r_maxparticles. Ah, the joy of sane variable names. 2001-09-19 18:07:09 +00:00
Adam Olsen 893c8b784b - tweak the cl_maxfps sleeping to be more finely grained
- treat empty snd_render/snd_output strings as "don't load"
2001-09-19 05:32:20 +00:00
Bill Currie bdf45386f0 some minor work getting the client side of libQFconsole working, but nowhere
near complete.
2001-09-19 03:39:04 +00:00
Ragnvald Maartmann-Moe IV 8af9c2321d Larger lightning sparks, and more importantly, cull particles more efficiently when bumping into max. R_LavaSplash and R_TeleportSplash need work, though. 2001-09-18 23:22:57 +00:00
Timothy C. McGrath 54e5a3e114 Fix for svgalib from joa, two liner. Very nice of him :)
Misty-chan
2001-09-18 22:38:08 +00:00
Adam Olsen 678068849e James' latest fullscreen patch, which works flawlessly for me :)
(and if anybody cares about the formatting they can change it AFTER
this is in)
2001-09-18 09:30:59 +00:00
Adam Olsen 7c75e264c9 - build fix for fbdev
- minor formatting tweak for in_common.c
2001-09-18 09:19:44 +00:00
Bill Currie b79ff6378d mouse warpage fixes from james 2001-09-18 05:18:49 +00:00
Bill Currie dd98622859 x11 vid_fullscreen improvements from james (thanks) 2001-09-18 04:53:01 +00:00
Bill Currie b559b3a796 fix a key mapping issue reported by MasterLich 2001-09-18 04:38:18 +00:00
Ragnvald Maartmann-Moe IV d3e8e4ed11 Sparks and a little smoke from TE_LIGHTNINGBLOOD.
And kill R_RunGunshotEffect.
2001-09-17 01:48:52 +00:00
Ragnvald Maartmann-Moe IV a7d8e2c0ea TE_EXPLOSION2 now does colored lighting. And spark showers brightened up a bit. Sparks all yellow now, none of the weird dingy grey ones. ;) 2001-09-16 20:07:28 +00:00
Bill Currie 52648b21e3 sv_use_curses 0 to disable curses, and fix the know issues with using the
old console
2001-09-16 06:08:09 +00:00
Bill Currie aade80a8d7 /finally/, libQFconsole is being used (qw-server only so far). Still has
some minor nits with ncurses and probably has some isues without ncurses
(quit didn't seem to work when I tried).
2001-09-16 05:41:28 +00:00
Ragnvald Maartmann-Moe IV 431ac4eedb Convert particles to use byte colors instead of float. Roughly breaks even on Mesa on my machine. Should be a speedup under other drivers. 2001-09-14 12:11:54 +00:00
Ragnvald Maartmann-Moe IV a474c7ad2f Update for current alsa header locations. 2001-09-14 12:08:52 +00:00
Bill Currie def8bb3cd5 LordHavoc's VectorIsNull changes from 0.3 but as VectorIsZero (no such thing
as a `null' vector) plus a couple of other bits from his patch.
2001-09-11 05:18:15 +00:00
Bill Currie 74e9f89e8c forward port the client info string filtering from 0.3 and remove info.h from
a couple of c files that no longer need it.
2001-09-11 03:10:29 +00:00
Bill Currie 8c026417d8 Wait for X to complete the previous operation before proceding to the next.
This causes the mouse to warp properly, but doesn't fix my disappearing window :(
(possibly a wm bug)
2001-09-10 21:55:34 +00:00
Bill Currie 95515e28d7 use XMapRaised instead of XMapWindow + XRaiseWindow 2001-09-10 17:18:31 +00:00
Bill Currie 0f30506b79 d'oh, got the return values backwards 2001-09-10 17:02:35 +00:00
Bill Currie 388513e005 several fullscreen toggling improvements including window location restoration 2001-09-10 16:53:33 +00:00
Bill Currie a17d8fe452 turns out the window location code is needed after all. 2001-09-10 15:41:47 +00:00
Ragnvald Maartmann-Moe IV 55dfead066 Typos (really ought to remember to test compile *before* committing, rather than immediately after). 2001-09-10 13:05:13 +00:00
Ragnvald Maartmann-Moe IV dc947ce8f5 Whitespace. 2001-09-10 12:56:23 +00:00
Ragnvald Maartmann-Moe IV fb7918d4f8 Optimize DEG2RAD a little, plus some whitespace. 2001-09-10 04:20:27 +00:00
Bill Currie 8ca44af043 fix a bug in the handling of case m (see skybox.fig) 2001-09-10 00:57:11 +00:00
Ragnvald Maartmann-Moe IV 7af79b96ec Lots of whitespace, header cleanups, and a few tiny optimizations. 2001-09-09 21:41:35 +00:00
Bill Currie 8a959d157b put my sky debug code back in (enabled for now) 2001-09-09 21:27:09 +00:00
Ragnvald Maartmann-Moe IV 28fe1dc004 Tweak rocket trails. Uglier, but don't bog down rocket snipers. Also a couple tiny optimizations and cleanups. 2001-09-09 19:37:07 +00:00
Bill Currie b788eb6dbd remove some no-longer needed code (the window coord finder) and quientn
the mode setting code a little.
2001-09-08 06:25:37 +00:00
Bill Currie b12ee9e166 unmap and re-map the window with the correct attributes for the current
setting of vid_fullscreen
2001-09-08 05:43:52 +00:00
Bill Currie 20188c6670 heh, and in_pre_amp 2001-09-08 03:34:28 +00:00
Bill Currie cd0d260549 fix an exponential growth of in_mouse_amp when in_amp is > 1 2001-09-08 03:33:57 +00:00
Bill Currie 888bdb7052 fix some static issues 2001-09-07 21:40:45 +00:00
Bill Currie 05f489735e code cleanups and possibly minor optimisations 2001-09-07 21:15:08 +00:00
Bill Currie c762151df6 comment on the code duplication for the texture resamplers 2001-09-07 17:12:02 +00:00
Bill Currie ffd9e727a8 roll the skin resampling loops back up 2001-09-07 17:05:56 +00:00
Ragnvald Maartmann-Moe IV 0d0e570676 Small particle trail speedup/legibility/flexibility improvement, at price of redundant code in sw/sw32. Tradeoffs. *sigh* 2001-09-07 05:37:11 +00:00
Bill Currie e9cf5b4eba include sys/types.h for freebsd 2001-09-07 04:41:13 +00:00
Bill Currie d7675ada7a move the particle count multiplication out of the renderer and into the clien
(for blood and gunshot, anyway).
2001-09-06 05:41:15 +00:00
Ragnvald Maartmann-Moe IV 4c7e60e73a Rearrange "rocket" trail code. Some small optimizations, mostly a cleanup, will make tweaking individual effects separately easier. 2001-09-06 04:26:53 +00:00
Bill Currie be7307faa9 move the dlight and lightmap code and data from r_main to r_light 2001-09-06 03:53:13 +00:00
Bill Currie 008d80df67 s/IMT_DEFAULT/IMT_0/g for the constant and move the name-enum entry for
IMT_DEFAULT to the bottom of the list so that IMT_0 gets written as such
rather than IMT_DEFAULT.
Also, clean up nq's EF_* dlight creation a bit (haven't touched
EF_MUZZLEFLASH: undecided on what to do).
2001-09-05 21:22:55 +00:00
Adam Olsen 9ab9764b7a - Change QA_alloc to use variable-arguments, allowing for a much more
extensible interface.
2001-09-05 18:23:38 +00:00
Ragnvald Maartmann-Moe IV 7d52c663a3 Convert a few rand to qfrandom, and a tiny optimization (more of a cleanup, really). 2001-09-05 09:06:48 +00:00
Ragnvald Maartmann-Moe IV 55f0fed0b6 Replace lhrandom with qfrandom, a different convenience macro with better random number distribution (see man 3 rand). 2001-09-05 06:20:45 +00:00
Ragnvald Maartmann-Moe IV d2c041cae6 Remove and ifdef out currently unused code. 2001-09-05 04:25:47 +00:00
Bill Currie 4249bba636 make sure input is grabbed when going fullscreen on init 2001-09-05 03:41:29 +00:00
Bill Currie f9e610bf6b fix a seg witn +set in_grab on the command line 2001-09-05 03:14:41 +00:00
Ragnvald Maartmann-Moe IV 75aaccf9f0 Prettier, but slower particle effects. Also skip particle physics when r_particles 0. 2001-09-05 02:04:02 +00:00
Bill Currie 2e1a5112bd give r_particles a callback to clear all particles when set to 0 and do
some general cleanup to the gl particles code
2001-09-05 00:08:54 +00:00
Ragnvald Maartmann-Moe IV 65c526c057 Some minor cleanups, and lots of particle effects tweaks.
Less blinding rocket trails is probably the most noticable change, other than a nice speedup in nq timedemos. Little change for overkill, though. Aw...
2001-09-04 10:32:51 +00:00
Bill Currie 83e3f10520 fix a silly with joystick buttons 2001-09-04 04:28:31 +00:00
Bill Currie dc4cd343b5 id's sky code is back (gl_sky_clip 2 when no skybox is loaded). Not as fast
as the black polygons (duh:) and not as nice looking as the sky dome, but also
not as slow (fps when standing in the normal coridor looking at the sky in
start: 26 for skydome, 37 for id skys, 44 for black). Good for when you want
to see sky other than black but your card can't handle the fillrate
requirements of skydome. I'll clean up the sqrt in there soonish.
2001-09-03 06:12:10 +00:00
Ragnvald Maartmann-Moe IV ed4de07e9a Header and variable declaration cleanups, tiny bit of whitespace. 2001-09-01 08:57:04 +00:00
Bill Currie 99a4ea2093 fix some bogosities 2001-08-31 19:13:16 +00:00
Bill Currie ea614fc2c6 turns out the sprite models are /not/ relocatable, so back out that change
in favor of cleaning up the accessors
2001-08-31 17:33:25 +00:00
Adam Olsen 384dfb7b66 - partial work for putting sprites in the cache.
doesn't currently build.
2001-08-31 15:32:11 +00:00
Adam Olsen f1a016c8a5 - Refine the Cache_Get callback, to use a void * instead of a char *
- Switch alias models over to Cache_Get/Cache_Release
2001-08-31 12:22:45 +00:00
Adam Olsen f54ef94fd0 remove the failure check from SND_CallbackLoad 2001-08-31 04:02:00 +00:00
Adam Olsen 6cab8cf4e0 - change Cache_Get calls to Cache_TryGet (which I just added), so they
can tollerate failure.
- minor error message tweak (an emptry string is not NULL!)
2001-08-31 03:48:26 +00:00
Bill Currie 2c51098ac9 the plugin structs /definitly/ have to be static and remove some debug from
alsa_0_9
2001-08-31 03:42:54 +00:00
Bill Currie bcc768295f missed some vars that should be static 2001-08-31 00:16:31 +00:00
Bill Currie e469b934ea get alsa0_9 working with latest cvs, we need to dlopen the plugin with
RTDL_GLOBAL. To use RTDL_GLOBAL, we need to make as much static as possible
 and PluginInfo needs a unique name (%s_%s_PluginInfo, type, name).
2001-08-31 00:05:58 +00:00
Bill Currie 2b18896bbb oh, the joys of asm in shared libs 2001-08-30 22:32:11 +00:00
Bill Currie a625f178af better sound_started checking 2001-08-30 22:11:45 +00:00
Bill Currie 7aa5ab75de header dep cleanup and IN_LL_Commands is /gone/ 2001-08-30 20:32:27 +00:00
Bill Currie 822e637e11 s/_windowed_mouse/in_grab/ and in_grab and in_dga now use callbacks 2001-08-30 20:04:13 +00:00
Ragnvald Maartmann-Moe IV 333bd5ea17 R_EntityParticles cleanup. 2001-08-30 19:51:11 +00:00
Bill Currie d81d7fd02c glColor cleanup 2001-08-30 18:24:19 +00:00
Adam Olsen e149094bd2 - rename Qalloc and friends to QA_alloc
- add a QA_strdup
- add Cache_{Add,Remove,Get,Release}, for the locking version of the
  cache
- Convert libs/audio/* over to locking cache functions
2001-08-30 11:37:50 +00:00
Bill Currie fa036c7c11 inline mark_surfaces 2001-08-29 20:55:14 +00:00
Bill Currie 0d55476711 make VectorSubtract and VectorCompare macros and clean up the readability
of R_DrawParticles
2001-08-29 20:19:54 +00:00
Bill Currie 3656d6fd59 compile fixes for win32 and take the pruning shears to *sys*.c in qw and nq
(they're not done yet, though)
2001-08-29 17:45:53 +00:00
Adam Olsen 5aceb0435e - add a cache_print command
- rename flush to cache_flush
- split off freeing of cache into a seperate function, as well as
  making it aware of read locks.
2001-08-29 15:29:17 +00:00
Adam Olsen 4deed9245a - Add CACHE_WRITE_{,UN}LOCK macros, and calls to them in Cache_*. No
effect until other things are done.
- Make Qalloc treat no callback as a failed callback
- Add a Qstrdup
- Fix a memory leak in cl_slists.c
2001-08-29 09:14:18 +00:00
Bill Currie a68542f0e8 remove some #if 1 bits (the #if, not the code:) 2001-08-29 04:53:59 +00:00
Adam Olsen f423b8a8e0 Preliminary Qalloc implimentation. Not yet used. 2001-08-29 04:52:03 +00:00
Bill Currie 5902dcca6a code cleanup 2001-08-29 03:27:31 +00:00
Bill Currie 663c58cd24 diff--; break; 2001-08-29 02:16:17 +00:00
Bill Currie b0c7ac9867 while (1) diff--; 2001-08-29 01:28:03 +00:00
Bill Currie aa3442f8b0 rearange the % calc to avoid float (and an ICE in gcc 3) 2001-08-29 01:20:30 +00:00
Ragnvald Maartmann-Moe IV dbae10f979 whitespace. grr. 2001-08-28 23:58:22 +00:00
Adam Olsen ff0cffde48 - my proof-of-concept mmapped cache code, currently disabled via ifdef
- also added a cache_profile command, which sorts allocations into
  power-of-2 sizes, then prints out how many are of that size, the
  average amount they use, and the percent of total memory is used.
  Also prints out totally allocated size, number of allocations, and
  average per allocation.
2001-08-28 23:26:58 +00:00
Bill Currie 11489550ba gratuitous_diff-- 2001-08-28 22:46:02 +00:00
Bill Currie baaa452345 merge error fixes 2001-08-28 20:51:51 +00:00
Bill Currie ff2b08b2fd make the Z_Malloc zone checking depend on developer 2001-08-28 06:15:58 +00:00
Bill Currie 13ecebd6a0 make Z_Malloc and friends more useful by allowing multiple zones 2001-08-28 05:21:30 +00:00
Bill Currie 2f9fd74a31 zone.c gets its name back 2001-08-28 04:24:40 +00:00
Bill Currie a9d6bc9a30 total nukage of #ifdef QUAKE2 (R_DarkFieldParticles is present, just unused) 2001-08-27 23:21:09 +00:00
Bill Currie 3edd4550d2 heh, nor do we need PROGHEADER_CRC 2001-08-27 21:13:00 +00:00
Bill Currie abb1469364 fix a minor but important thinko that caused a nasty seg 2001-08-27 05:15:39 +00:00
Adam Olsen 5e4d7e4376 Add a sprintf builtin 2001-08-27 03:17:59 +00:00
Ragnvald Maartmann-Moe IV 793efd6976 Whitespace. 2001-08-27 01:00:03 +00:00
Ragnvald Maartmann-Moe IV b1666defb9 Remove unused code. 2001-08-26 19:47:35 +00:00
Ragnvald Maartmann-Moe IV b64822e572 Why r_var.c had extern R_ForceLightUpdate I've no idea, but it doesn't anymore. 2001-08-26 17:32:30 +00:00
Ragnvald Maartmann-Moe IV da1c680364 Whitespace. 2001-08-26 17:13:33 +00:00
Ragnvald Maartmann-Moe IV 84b2070d17 Whitespace. 2001-08-26 16:54:33 +00:00
Ragnvald Maartmann-Moe IV 707c4aa44b I like it better when quakeforge compiles.
-Werror feels otherwise.
*grmbl*
2001-08-26 13:24:38 +00:00
Adam Olsen 74e9786cd1 Extend PF_Find to support searching for different field types 2001-08-26 06:35:03 +00:00
Ragnvald Maartmann-Moe IV 6e73ba0e7a Whitespace, plus comment out unused code. 2001-08-26 01:08:09 +00:00
Adam Olsen 72f91dc9bc comment cleanups, and a little harmless (?) bugglet fix in the
charcount builtin's error handling code.
2001-08-26 00:05:31 +00:00
Ragnvald Maartmann-Moe IV 06dd45bdb1 Merge common lighting code. Still some lightmap-related code in *_rsurf.c that might be mergable. This is the first step towards 3 component lighting for the sw32 renderer.
Note that gl_lightmap_components is now r_lightmap_components, and gl_dlight_lightmaps is now r_dlight_lightmaps.
2001-08-25 23:23:14 +00:00
Adam Olsen c6ec43d659 some build fixes, which I'm not sure are right, and a fix for
fullscreen toggling.
2001-08-25 09:21:40 +00:00
Bill Currie 2a027969d5 various init order fixes and a */[] snafu sorted
also make translations big enough for the 32 bit colors
2001-08-25 05:54:21 +00:00
Bill Currie 2634b447b5 initialize the gamma 2001-08-25 04:53:00 +00:00
Bill Currie a401d6f40a enable the screen update code but things are still black (palette issues?) 2001-08-25 04:47:07 +00:00
Bill Currie 5134978100 allocate space for the color maps 2001-08-25 04:36:27 +00:00
Ragnvald Maartmann-Moe IV f7f04aad5f Add .gitignore. Whee. 2001-08-25 03:53:05 +00:00
Bill Currie 4ed75b014a "Yay, it builds!"
"Ah, but does it work?"
2001-08-25 03:52:34 +00:00
Bill Currie 8fa46e9fc0 almost there getting the sw32 client to link 2001-08-25 03:24:44 +00:00
Ragnvald Maartmann-Moe IV 20544c6c67 Remove some obsolete comments. 2001-08-25 03:06:46 +00:00
Ragnvald Maartmann-Moe IV c6266aba36 sw32. Flee in terror. This'll break compilation for everything until -sdl32 compiles. sw32 wont work for a while either, so don't get overly excited yet. 2001-08-25 02:47:11 +00:00
Adam Olsen 9c9756c19a Start of non-mmaped OSS sound support. it uses a cvar, so it's not
active yet.
2001-08-24 02:38:28 +00:00
Adam Olsen bd847e73f1 Add support for dumping backtraces. 2001-08-23 23:34:38 +00:00
Bill Currie 79be73f507 we now require sdl 1.2 for sdl support 2001-08-23 20:28:41 +00:00
Adam Olsen 90849100fe Build fixes, notably for snd_sdl.c. It segfaults on shutdown though
:/
2001-08-23 11:40:53 +00:00
Adam Olsen 50e545292a remove extra calls to SNDDMA_Init_Cvars 2001-08-23 04:52:54 +00:00
Adam Olsen 62e1819ec5 build fixes 2001-08-23 04:18:55 +00:00
Adam Olsen cad42cbc78 Put the sound renderer in it's proper place: as a full-fledged plugin.
Bugs expected.  Please report them :)
2001-08-23 04:01:46 +00:00
Ragnvald Maartmann-Moe IV 6797f556cf diff-- for sw32. 2001-08-23 00:39:22 +00:00
Ragnvald Maartmann-Moe IV edcf092b05 Whitespace, dammit. Oh, and removal of several orphaned comments. Comments in front of functions suck. 2001-08-22 22:03:16 +00:00
Adam Olsen 2bf0fa910f Rework ED_Print to be type-aware, instead of blindly assuming
everything is an integer.
2001-08-22 21:07:06 +00:00
Ragnvald Maartmann-Moe IV 7a09f37e0b Lots of whitespace. 2001-08-22 20:26:25 +00:00
Ragnvald Maartmann-Moe IV e7fb6a1100 Whitespace, comment cleanups, and a very tiny cleanup/micro-optimization for R_AddDynamicLights. 2001-08-22 11:00:25 +00:00
Bill Currie 4a9567cb8d missed this one 2001-08-22 05:44:04 +00:00
Adam Olsen e9ec5f867f A few tweaks and cleanups 2001-08-22 05:37:50 +00:00
Bill Currie 3fc566a7ee nor does it seem to have gamma support 2001-08-22 04:16:10 +00:00
Bill Currie 015fe8071a sdl 1.1.4 doesn't have SDLK_COMPOSE 2001-08-22 04:01:50 +00:00
Bill Currie 8f269ee821 fix "cannot find -lQFsoundrenderer" on some systems 2001-08-22 03:54:26 +00:00
Adam Olsen 17ba7ef92f - move alot of the builtins to libQFgamecode_builtins
- move the init into qw and nq
2001-08-22 03:24:25 +00:00
Adam Olsen 1314c89b6c - add libs/gamecode/builtins subdir, with libQFgamecode_builtins.la
- add .gitignore files
- fix building :)
2001-08-21 22:34:20 +00:00
Adam Olsen 9ea52e8239 Move the gamecode engine into a subdir. 2001-08-21 21:05:26 +00:00
Bill Currie ec3eed4c7a don't do the lerp calcs for blend == 0 or blend == 1 2001-08-21 05:46:55 +00:00
Bill Currie 0d82df96b0 ah, found the correct fix :) 2001-08-21 05:29:15 +00:00
Bill Currie 7ea46cf4ed disable lerping of the shadedots. stops the flicker but some lighting will
probably be a little funny.
2001-08-21 05:16:30 +00:00
Bill Currie 9bad6b89bb lerping works again. flames no longer flicker, but players do a /little/ 2001-08-21 03:49:17 +00:00
Bill Currie 9c43a43bb3 must make sure *gzfile gets nulled on error 2001-08-21 02:44:45 +00:00
Adam Olsen d430cdcbff My updir patch from long ago. Prevents opening any files with an
updir in their filename.
2001-08-21 00:06:22 +00:00
Bill Currie e61c56af94 hopefully make sound plugin linking work better 2001-08-20 02:32:33 +00:00
Bill Currie 1af4fe4b79 make (in_)bind's output a little more intuitive and support num lock and
scroll lock in x11.
2001-08-20 02:06:55 +00:00
Bill Currie cd338f47f2 haha, oops. got x and y translations reversed 2001-08-20 01:09:33 +00:00
Ragnvald Maartmann-Moe IV 1c9918fe48 Commit inexplicably lost lines of code. Stops certain unwanted crashes. 2001-08-17 23:20:08 +00:00
Bill Currie b61999750b fix shift changing the key name 2001-08-17 19:47:51 +00:00
Ragnvald Maartmann-Moe IV 5536883f71 Convert joy_sensitivity to joy_amp and joy_pre_amp, and support in_amp, in_pre_amp. 2001-08-17 08:35:26 +00:00
Ragnvald Maartmann-Moe IV 36395e1681 Minor comment updates, Imt->IMT in a few function names, and accel->amp for input amplification (once known as sensitivity). 2001-08-17 07:26:01 +00:00
Zephaniah E. Hull 80696badc7 kgt->imt, and imt now displays the current IMT. 2001-08-17 07:06:01 +00:00
Bill Currie d96f0962ab fix for new input crap 2001-08-17 04:58:10 +00:00
Adam Olsen f0c200120c yup, more 2001-08-17 03:43:28 +00:00
Ragnvald Maartmann-Moe IV 13f394b161 Damn -Werrors to hell. 2001-08-17 02:18:06 +00:00
Bill Currie 86be79d1c7 forgot to convert unbind's keyname 2001-08-17 01:55:54 +00:00
Bill Currie bb2079a6d7 make the conversion case insensitive 2001-08-17 01:54:03 +00:00
Adam Olsen 62813111a0 yet more IE stuff 2001-08-16 23:34:49 +00:00
Bill Currie f840a44981 gcc 3.0 related fixes 2001-08-16 23:24:39 +00:00
Ragnvald Maartmann-Moe IV 4ca1499c51 Whitespace. Don't you wish it would all just go away? 2001-08-16 23:14:46 +00:00
Bill Currie 373792ff69 `fix' for new input system
still broken functionally :/
2001-08-16 22:49:53 +00:00
Adam Olsen 92729ff6b2 More changes to input events 2001-08-16 22:27:22 +00:00
Adam Olsen 916b503f14 Some basic stuff for input events. Not yet used. 2001-08-16 21:08:17 +00:00
Bill Currie 1c12dd804c ok, old configs /should/ work again, though I'm having problems with F10
not quitting (mind you, I'm not connected)
2001-08-16 20:42:57 +00:00
Bill Currie b0cb351fba bind and unbind wrappers for in_bind and in_unbind. old configs/mods are
still currently broken because I need to translate key names still.
2001-08-16 19:10:35 +00:00
Bill Currie 98b7a9fdd5 part way there :/ I'll leave vid_wgl and vid_mgl alone for now (probably move
that code to in_win.c)
2001-08-16 18:25:17 +00:00
Bill Currie 999c6a3b93 mek eet verk! 2001-08-16 17:52:35 +00:00
Bill Currie 12eff5eb65 x11 seems ok (hard to say: nothing's bound:/)
rename bind and unbind to in_bind and in_unbind
2001-08-16 16:41:40 +00:00
Zephaniah E. Hull 7cf0fd1b3b Fix a few bugs. 2001-08-16 11:43:17 +00:00
Zephaniah E. Hull 20adccc9e4 A few things, first is that I removed the (rather broken) serial
networking support.

Second, I moves keys.c from qw and nq to libs/video/targets when I did
the next thing.

Existing user configs which do binds, sledge hammer. Sledge hammer,
existing user configs which do binds. *WHACK* *WHACK* *WHACK*

See, much nicer now.

Someone should document it, and fix all targets which don't use SDL for
input. (I honestly don't expect svgalib and the like to ever be fixed.)
2001-08-16 09:19:36 +00:00
Ragnvald Maartmann-Moe IV 0c7f011f4b whitespace. 2001-08-16 06:58:55 +00:00
Adam Olsen 4d92467e7c Make SDL support vid_fullscreen toggling too 2001-08-16 03:36:40 +00:00
Bill Currie 9ee3450265 extend the hash api to more easily support general cases 2001-08-16 02:51:53 +00:00
Zephaniah E. Hull 8f7918d4ad Fix the other keypad keys for SDL input.
Ditch sensitivity as a name, we now have in_mouse_accel,
in_mouse_filter, and in_mouse_pre_accel.
2001-08-15 23:04:54 +00:00
Zephaniah E. Hull 8f011f91ec Length is now a #define, not a bloody function! 2001-08-15 23:01:56 +00:00
Bill Currie 092d3486bd make cd plugins repect --with-plugin-path 2001-08-15 23:00:08 +00:00
Bill Currie d48b3ee9d2 s/LIB_DEPS/DEPENDENCIES/ 2001-08-15 22:40:56 +00:00
Jeff Teunissen 2d84e89432 whitespace. 2001-08-15 22:38:11 +00:00
Bill Currie edf4b85cc7 don't need to (and seems that you shouldn't) specify a path for local libs 2001-08-15 22:31:07 +00:00
Bill Currie a22fd5a172 sdl 1.1.5 fixes 2001-08-15 21:29:18 +00:00
Adam Olsen e3590642fb Moved the sound renderer into a seperate lib. You'll need to rerun
configure, else it won't build said lib and you'll get errors loading
sound plugins.
2001-08-15 21:03:10 +00:00
Bill Currie 9ecce9becd remove a magic number 2001-08-15 15:32:24 +00:00
Bill Currie 5dc827ccf8 comment brein damage 2001-08-15 07:50:21 +00:00
Bill Currie 8059265181 pr_strings.c:
fix some off-by-one bugs
gl_mesh.c:
	make the messing... message developer mode
2001-08-15 06:01:38 +00:00
Ragnvald Maartmann-Moe IV d96eb31db3 Grr, missed one. 2001-08-15 02:40:43 +00:00
Ragnvald Maartmann-Moe IV cddaa521cc Change loadas8bit to snd_loadas8bit. 2001-08-15 00:53:37 +00:00
Bill Currie b33b9fc58a remove a redundant call to JOY_Command 2001-08-14 22:10:55 +00:00
Bill Currie 9f2418d873 new cvar: gl_mesh_cache. controls minimum triangle count in a model before
the model is cached or cache checks are done for that model. 0 disables
caching entrirely.
2001-08-14 20:02:54 +00:00
Bill Currie dd16a1c4d5 call the IE init ans shutdown functions. still need to rework the rest of the
intput system to use it.
2001-08-14 00:03:03 +00:00
Bill Currie 07a09e0812 statement printing now infers the type of a def from the instruction where
possible, thus allowing anonymous defs to print their contents.
2001-08-13 23:49:04 +00:00
Bill Currie d55199bece re-arrange the types of store and storep so things make a little more sense 2001-08-13 23:00:17 +00:00
Bill Currie 283b0e1a21 change the types of the statement operands to unsigned short to clean up
most of the uses
2001-08-13 21:09:00 +00:00