Commit graph

1355 commits

Author SHA1 Message Date
Thilo Schulz
185d2d6b60 Add codec fallback support for sound files not found, Patch by Zack Middleton (#4982) 2011-05-09 22:40:25 +00:00
Thilo Schulz
2eb9975334 Fix nasty crash bug 2011-05-09 21:47:41 +00:00
Thilo Schulz
36314a1622 Add error handling to malloc as well 2011-05-09 15:40:30 +00:00
Thilo Schulz
2e3c902da9 fix overzealous cvar cheat protection, patch by cyrri (#4974) 2011-05-06 11:50:26 +00:00
Thilo Schulz
2ae1bf3dcd IQM skin support and print limit info, make other limit info consistent, patch by Zack Middleton (#4978) 2011-05-06 11:43:07 +00:00
Thilo Schulz
45824008d9 Remove C99 code constructs from IQM code, patch by gimhael (#4974) 2011-05-05 13:33:43 +00:00
Thilo Schulz
876fd7dcb9 - Add HOMEPATH default name define to q_shared.c, patch by uZu (#4973)
- Reverted change from (#4972) and implemented the other suggestion to be consistent with cl_cgame.c and cl_ui.c
2011-05-04 15:39:35 +00:00
Thilo Schulz
1062c1b87b Do use the SV_Game{Error,Print} functions (#4972) 2011-05-04 14:51:56 +00:00
Thilo Schulz
bd2f6dbf05 [23:59:05] <ZTurtleMan> Thilo: altName (created using va) does not point to model filename in developer-only printf as va is used to load images before the printf. http://pastebin.com/1KCjz6Ct 2011-05-02 22:01:39 +00:00
Thilo Schulz
d37b2da593 - Add licence headers to new files
- Add patch from Zack Middleton which fixes a few issues still
2011-05-02 20:30:14 +00:00
Thilo Schulz
86c41d39da Fix sending reliable commands before being connected, patch by Eugene C. (#4971) 2011-05-02 16:03:35 +00:00
Thilo Schulz
50721a6580 Remove sv_strictAuth cvar for STANDALONE games 2011-05-02 15:58:56 +00:00
Thilo Schulz
b97a7e2583 Fix out of bounds array index (#4960) patch by Ben Millwood 2011-05-02 15:57:02 +00:00
Thilo Schulz
bd9485f597 Do not retry image loader for image that failed, patch by Zack Middleton (#4968) 2011-05-02 15:53:20 +00:00
Thilo Schulz
c5e2654b54 - Add Inter-Quake Model (IQM) Format support, patch by gimhael with minor modifications by myself (#4965)
- Changed model_t::md4 to model_t::modelData
- Fix R_ModelBounds for MD4, MDR and IQM models (#4966)
- Support Model format fallback similar to image formats in tr_image.c, patch by Zack Middleton (#4967)
2011-05-02 15:50:19 +00:00
Thilo Schulz
d34c6b7e0b Revert protocol 69 pending further discussion (#4962) 2011-04-27 20:17:45 +00:00
Thilo Schulz
a5580d8974 - Harden the client and server protocol against UDP spoofing attacks. This will defend ioquake3 against http://aluigi.altervista.org/papers/q3noclient.txt (#3041)
- Retains full compatibility to the old but unsecure protocol between clients and servers
- Harden the connection process against DoS attacks, possibly connected to UDP spoofing
2011-04-27 16:03:35 +00:00
Thilo Schulz
06d12f6085 Replace a few numeric constants with already defined macros, patch by ZTurtleMan 2011-04-26 09:48:40 +00:00
Thilo Schulz
a0582fb21a Fix a little quirk still 2011-04-26 02:32:05 +00:00
Thilo Schulz
797d127dfc Use memcmp instead of self-built while loop 2011-04-26 02:30:12 +00:00
Thilo Schulz
9541fca878 Add better support for analog joysticks, patch by use.less01 2011-04-19 13:26:15 +00:00
Thilo Schulz
3551b0fa3c Let codec loader decide which extension to give to extensionless filenames 2011-04-18 18:55:58 +00:00
Thilo Schulz
6a203bc8e9 - Fix data alignment issue with glReadPixel call, reported by Guillaume Bougard (#4954)
- Fix data alignment issue in raw AVI recording for weird resolutions (like 1366x768)
2011-04-18 16:06:10 +00:00
Thilo Schulz
5769bed4a3 Make Sys_SetEnv behave alike on Windows and Linux 2011-04-18 00:39:15 +00:00
Thilo Schulz
6b82f4fd09 Consider key states before startup, patch by Zack Middleton (#4950) 2011-04-17 22:09:05 +00:00
Thilo Schulz
e5c210236c Fix a few comments (#4591) 2011-04-13 23:42:55 +00:00
Tim Angus
01a274baf7 * Actually call Sys_PlatformExit 2011-04-09 12:33:56 +00:00
Thilo Schulz
31ec563999 Fix player queueing for tournament play (#4939) 2011-04-07 23:41:32 +00:00
Tim Angus
806a849bf2 * Fix jpeg warnings 2011-03-30 22:23:58 +00:00
Tim Angus
52ead6fa36 * Crash recovery for com_pipeFile (Lakitu7) 2011-03-30 21:58:31 +00:00
Thilo Schulz
16b99e354b Fix JPEG compression for screenshots and mjpeg video recording with new JPG library 2011-03-17 16:00:45 +00:00
Thilo Schulz
d3f8dffe39 Bug 4936 - Wrong color for non-ascii symbols in console 2011-03-17 12:53:47 +00:00
Thilo Schulz
c1d8a260ae Fix dynamic lighting for moving world surfaces. Patch by gimhael, thx 2011-03-14 17:25:20 +00:00
Thilo Schulz
379dfbf496 - Properly use ALC_ALL_DEVICES_SPECIFIER in sound info
- Properly use ALC_CAPTURE_DEVICE_SPECIFIER in sound info
2011-03-14 16:36:40 +00:00
Tim Angus
e0eb1b4227 * Fix whitespace 2011-03-14 16:04:49 +00:00
Thilo Schulz
182b344818 - Remove alext.h dependency and manually add the required macros
- Use ALC_DEFAULT_ALL_DEVICES_SPECIFIER instead of ALC_DEFAULT_DEVICE_SPECIFIER if extension exists
2011-03-14 15:57:39 +00:00
Ludwig Nussel
1b27ae23c1 include vm_local.h in vm_powerpc_asm.c
Patch by Simon McVittie, bug 4930
2011-03-13 16:54:41 +00:00
Ludwig Nussel
55369f9535 add missing jconfig.h 2011-03-13 16:17:06 +00:00
Ludwig Nussel
246b496693 include alext.h for ALC_ALL_DEVICES_SPECIFIER
This assumes OpenAL Soft (Simon McVittie, bug 4927)
2011-03-13 15:46:27 +00:00
Thilo Schulz
0c10adaf92 - Migrate to jpeg-8c
- Add possibility to link against system libjpeg
2011-03-12 16:45:15 +00:00
Thilo Schulz
bce3848523 Make buffers for device lists a bit longer. Just in case. 2011-03-11 13:53:22 +00:00
Thilo Schulz
641256f7f0 strtod exists in bg_lib.c now so Q_isanumber will work in the VMs, too. 2011-03-11 13:51:36 +00:00
Tim Angus
a9830934ba * Fix misplaced ; in MSVC _vsnprintf wrapper 2011-03-10 22:06:55 +00:00
Thilo Schulz
3bf8ec2dab (#4925) - com_pipefile to create a named pipe for sending commands from other processes, patch by Chris Schwarz 2011-03-10 01:01:27 +00:00
Thilo Schulz
a3def2744f - Fix a compiler warning
- Fix the detection of the enumeration extensions
- Fix default device for s_alInputDevice
- Adjust formatting of S_AL_Info output
2011-03-09 23:34:15 +00:00
Thilo Schulz
e5cec15fbf Fix bug where Com_StartupVariable would set CVAR_USER_CREATED on already existing cvars 2011-03-09 22:50:06 +00:00
Thilo Schulz
7ca1dc6f8b - I accidentally committed patch by slacker from (#4915) in r1916. Patch adds input device selection support
- Add check for ALC_ENUMERATE_ALL_EXT before using ALC_ALL_DEVICES_SPECIFIER in device enumeration
- Patch readme for new cvars by Zack Middleton
2011-03-09 12:59:25 +00:00
Thilo Schulz
37727b892c Rename cvar "in_joystickThreshold" to "joy_threshold" as QVMs use the latter name. 2011-03-08 02:14:39 +00:00
Thilo Schulz
8c3f320504 (#3767) Some protection from malicious qvms - patches and ideas by Amanieu d'Antras and Ben Millwood 2011-03-08 01:39:34 +00:00
Thilo Schulz
657c791257 Zack Middleton made me do it 2011-03-08 01:37:28 +00:00
Thilo Schulz
0a6f873999 Add g_humansplayers (found by server) and g_needpass (cvar) to serverinfo (#4702) 2011-03-07 23:12:16 +00:00
Thilo Schulz
97ed3650d7 Make Video settings menu revert some settings to default values via Cvar_Reset() instead of hardcoded values (#2589) 2011-03-07 23:07:24 +00:00
Thilo Schulz
dd0161f475 Add in_availableJoysticks to list usable joysticks, similar to s_alAvailableDevices. Some parts of the patch provided by Zack Middleton 2011-03-07 22:56:03 +00:00
Thilo Schulz
c0cca7a0a8 - Fix potential out-of-bounds read in files.c, fix by using new FS_IsExt
- Add capability to load demos with com_protocol suffix, partially applied patches from Simon McVittie
- Fix demo loading if protocol number has more digits than 2
- Minor refactoring, replace all occurances of suffix "dm_" with global macro DEMOEXT
2011-03-07 22:08:48 +00:00
Thilo Schulz
fef4d12d68 Refactoring patch by DevHC 2011-03-05 19:20:37 +00:00
Thilo Schulz
21668c0616 Fix systeminfo command, fix by DevHC 2011-03-05 19:11:56 +00:00
Thilo Schulz
0387b8002e Add cvar "protocol" so user can change protocol version on command line, for standalone games. Most of the patch by Simon McVittie with a few minor modifications by myself 2011-03-05 19:10:23 +00:00
Thilo Schulz
3639108763 Also send empty valued system cvars, fix proposed by DevHC 2011-03-05 19:07:56 +00:00
Thilo Schulz
2e2e54e3c5 Fix quirk reported by Zack Middleton 2011-03-04 21:51:34 +00:00
Thilo Schulz
75cd136c44 (#4922) Use screenYScale, not screenXScale, for scaling Y, by Zack Middleton 2011-03-04 20:32:03 +00:00
Thilo Schulz
b764150a97 (#4291) Redundant statement in client console, by Zack Middleton 2011-03-04 20:29:24 +00:00
Thilo Schulz
0b538a929e (#4919) Extra variable in missionpack ui's bind_t structure, by Zack Middleton 2011-03-04 20:26:57 +00:00
Thilo Schulz
8bdd8e6705 (#4918) Gametype clamping using constant integer in missionpack ui, by Zack Middleton 2011-03-04 20:23:29 +00:00
Thilo Schulz
b1f861b8da Patch by Zack Middleton (#4920) 2011-03-04 20:20:43 +00:00
Thilo Schulz
34e0a6c6f6 Make NET_Sleep wait 1ms less than requested, then busy-wait the last ms for better timeout precision. 2011-02-23 18:09:17 +00:00
Thilo Schulz
ccd24cd647 - Fix unterminated string errors in Q_vsnprintf() on windows. Thanks to Eugene C. for reporting (#4907)
- Get rid of bigbuffer in Com_sprintf()
- Get rid of Q_snprintf and replace with Com_sprintf()
2011-02-23 16:17:09 +00:00
Tim Angus
ab9b08e584 * Fix Sys_Milliseconds wrapping causing the flood protection code to
malfunction and block all traffic (reported by bubu^)
2011-02-18 23:46:02 +00:00
Thilo Schulz
6516be2fed Support non-256x256 videos in shaders, by Zack Middleton (#4745) 2011-02-11 14:46:34 +00:00
Thilo Schulz
8bb9a261bd Auto complete demos on not in pk3s while in pure servers. Patch by Zack Middleton (#4794) 2011-02-11 14:30:55 +00:00
Thilo Schulz
91d1a6aab4 OMGWHATISTHISSHITIDONTEVENKNOW 2011-02-10 23:16:14 +00:00
Thilo Schulz
4dc750aedb Merge "which" command upstream from Tremulous, patch provided by Chris Schwarz 2011-02-10 23:07:07 +00:00
Thilo Schulz
2c57226d9f JPEG quality control patch, by Zack Middleton (#4673) 2011-02-10 21:18:31 +00:00
Thilo Schulz
614f315ce8 Fix console tab autocomplete for exec and condump on pure servers, patch by Zack Middleton 2011-02-10 19:58:20 +00:00
Thilo Schulz
a56e448850 Add minimize command (#4531) 2011-02-10 19:21:13 +00:00
Thilo Schulz
e05c9ad1c2 - Make some string functions in g_cmds.c cleaner, by DevHC
- embed VM_FREEBUFFERS() macro in do-while-loop
2011-02-10 18:56:18 +00:00
Thilo Schulz
544a1c0c1a - Use MAP_FAILED error code for check whether mmap() was successful
- Replace various malloc() with Z_Malloc
- Fix several memory leaks when VM compilation failed and Com_Error is called
- Make failed mmap/VirtualAlloc/malloc calls fatal
2011-02-10 18:45:28 +00:00
Zachary Slater
5e0d0efd2e http://www.angryflower.com/aposter.html
(minor English issues, most of which are via /dev/humancontroller)
2011-02-09 05:51:33 +00:00
Thilo Schulz
476e35f50e Make Q_vsnprintf() more standard conform in bg_lib.c, patch by devhc 2011-02-09 01:31:26 +00:00
Thilo Schulz
3b40467599 Finally fix missionpack compiling for STANDALONE=1, yes, this is tested. 2011-02-09 00:42:54 +00:00
Thilo Schulz
f5759d3c68 Brace for incoming grammar fix by DevHC! 2011-02-09 00:32:11 +00:00
Thilo Schulz
956c9a262a First batch of getting replacing malloc() with Z_Malloc 2011-02-09 00:02:42 +00:00
Thilo Schulz
8cd4b77a1e Fix strcpy copying buffer into itself, thanks to Simon McVittie for reporting and the patch (#4894) 2011-02-08 23:16:03 +00:00
Thilo Schulz
8a3f2ff805 It's late, I'm tired. 2011-02-08 21:38:49 +00:00
Thilo Schulz
c257dc2cfa Fix memmove with new size_t typedef, thanks DevHC for reporting 2011-02-08 21:27:45 +00:00
Thilo Schulz
eb11388cac Fix STANDALONE in files.c 2011-02-08 20:27:49 +00:00
Thilo Schulz
ba19fe1152 Still not compiling when STANDALONE is set 2011-02-08 20:24:41 +00:00
Thilo Schulz
7efcc91265 fix compiling error when in standalone mode 2011-02-08 20:21:37 +00:00
Thilo Schulz
2d2bdea553 Cleanup STANDALONE 2011-02-08 19:51:43 +00:00
Thilo Schulz
dd30b09526 By ZTurtleMan: Cleanup; only load harvester data in harvester gametype, removed unused var, and ifdef a missionpack only var. 2011-02-08 18:38:29 +00:00
Thilo Schulz
2b52867b74 Code cleanup patch by devhc 2011-02-08 18:19:31 +00:00
Thilo Schulz
9f786f4def - A few code cleanups in gamecode
- Add a bit of stuff from Zakk Middleton
2011-02-08 18:06:39 +00:00
Thilo Schulz
d2612c8a36 Fix levelshot so that it cannot be executed by remote clients (#4339) 2011-02-08 17:58:31 +00:00
Thilo Schulz
be4e459148 mage size_t typedef unsigned int instead of just int, thx devhc for suggesting 2011-02-08 17:25:45 +00:00
Thilo Schulz
48b03a035b Ok, getifaddrs() is not POSIX compliant. Fix #3984 as suggested by Vincent Cojot 2011-02-07 05:20:31 +00:00
Thilo Schulz
1d2d67cdde strdup still not accepted by some systems. *sigh*. 2011-02-07 03:56:15 +00:00
Thilo Schulz
a2715bc283 Fix buffer overflow, reported by Mads Lind 2011-02-06 20:35:46 +00:00
Thilo Schulz
0e6427f3ff - Hopefully fix (#3984) compiler errors on Solaris while not introducing too many new ones on the other platforms
- With _BSD_SOURCE now explicitly defined bring back strdup to vm_x86_64_assembler.c
2011-02-06 20:26:18 +00:00
Thilo Schulz
0afedc928c How could this stay undiscovered for so long? Unbelievable. 2011-02-06 20:06:03 +00:00
Thilo Schulz
f03ee4b61c Oops typo. 2011-02-06 18:59:39 +00:00
Thilo Schulz
44fb8f49b6 Fix adding multiple entries for same server when using globalservers several times, patch by Tequila 2011-02-06 17:59:23 +00:00
Thilo Schulz
61c8b878b8 Fix tourney score board. Thanks Zack Middleton for the patch and report 2011-02-06 17:33:51 +00:00
Thilo Schulz
f34b96b586 Fix flag collision in botlib code, thanks Cyrri for reporting (#4886) 2011-02-04 18:23:52 +00:00
Thilo Schulz
387e33a4e3 Remove guid again because we don't want every play on the server to know all guids, thanks brain for reporting 2011-02-04 17:50:34 +00:00
Thilo Schulz
7bb5906599 Patch by Simon McVittie to improve dynamic library loading (#4700) 2011-02-04 17:47:57 +00:00
Thilo Schulz
d2f8b9f4bb Support GNU/kFreeBSD, patch by Cyril Brulebois. Thanks. 2011-02-04 17:31:12 +00:00
Tim Angus
c61ad8a074 * Fix fp literals 2011-02-04 17:22:42 +00:00
Thilo Schulz
8869e989e4 typos, patch by Ansgar Burchardt <ansgar@43-1.org> 2011-02-04 17:18:40 +00:00
Thilo Schulz
31d99e2c4e Fix division by zero, reported by Simon McVittie 2011-02-04 17:16:53 +00:00
Thilo Schulz
dc92a6cd79 Fix #4683, thanks Zack Middleton 2011-02-04 17:01:08 +00:00
Thilo Schulz
91f3c1596f Ben Millwood fixing his own stuff (#4598) 2011-02-04 16:09:05 +00:00
Thilo Schulz
e66abb3237 - Add support for linearly desaturating images via r_greyscale
- Use correct luminance values for rendering textures
Patch submitted by Forrest Voight.
2011-02-04 16:04:37 +00:00
Thilo Schulz
13836e5f4a Thanks for the patch, gimhael. (#4576) 2011-02-04 15:21:15 +00:00
Thilo Schulz
ecbe1ab9fd Thanks Simon McVittie for fixing the bug regression in https://bugzilla.icculus.org/show_bug.cgi?id=4629 2011-02-04 15:11:57 +00:00
Thilo Schulz
01d7eaddf5 https://bugzilla.icculus.org/show_bug.cgi?id=4576 2011-02-04 15:07:32 +00:00
Thilo Schulz
d563deba76 Fix https://bugzilla.icculus.org/show_bug.cgi?id=4733 2011-02-04 14:44:17 +00:00
Thilo Schulz
f6ea5315f7 Fix a warning 2011-02-04 14:19:51 +00:00
Thilo Schulz
2cddb3e0ea https://bugzilla.icculus.org/show_bug.cgi?id=4460 2011-02-04 13:43:41 +00:00
Thilo Schulz
67a8b273c2 - Add cvars cl_gamename, sv_heartbeat, sv_flatline so standalone games can customise their messages to the master server 2011-02-04 13:25:51 +00:00
Thilo Schulz
0eb5d1720c Fix banfile writing to wrong game directory 2011-02-04 12:34:11 +00:00
Thilo Schulz
3148416c04 - Change runtime standalone detection:
* com_standalone now read-only
  * add new cvars com_basegame, com_homepath
  * standalone now automatically detected when com_basegame is set to something different than baseq3 and no id pak pk3s are found
  * This fixes https://bugzilla.icculus.org/show_bug.cgi?id=4699
- Replace a few hardcoded string literals with macros
- Add checks for Team Arena PK3s to FS_CheckPak0()
2011-02-04 12:04:56 +00:00
Thilo Schulz
774955c748 whatever devhc you're right 2011-02-03 17:34:26 +00:00
Thilo Schulz
cf791d14c5 - Fix bug #4769 remote server crash
- Fix potential 1-byte-buffer overflow in gamecode
2011-02-03 02:54:36 +00:00
Thilo Schulz
16c83ae2c5 Server crash can cause recursive call to Com_Error, too 2011-02-02 23:57:22 +00:00
Thilo Schulz
4982bf8e6b r1833 now made some Linux systems spit out warnings. Fix this once and for all 2011-02-02 16:49:52 +00:00
Thilo Schulz
e5dbce839a - Use select() to sleep when idle as opposed to busy waiting.
- Introduce com_busyWait cvar to go back to old behaviour
2011-02-02 16:46:23 +00:00
Thilo Schulz
fa8201c9b6 Delete unused variable 2011-01-31 22:09:47 +00:00
Thilo Schulz
0baadba7d1 Windows doesn't know z in format string 2011-01-31 21:13:37 +00:00
Thilo Schulz
5cd116d3ad Only adjust timer resolution for clients 2011-01-31 20:32:00 +00:00
Thilo Schulz
e0a85521c9 Explicitly set timer resolution on windows 2011-01-31 20:23:05 +00:00
Ludwig Nussel
14c5a82c14 cvar is called fs_game (bug 4866) 2011-01-30 13:34:54 +00:00
Thilo Schulz
f725b23c4f Fix floating point imprecision causing glitches in snapshot sending 2011-01-29 22:01:55 +00:00
Thilo Schulz
cd3e202fca - Add parameter checking to CL_*Ping* functions.
- Remove unused CL_UpdateServerInfo function
2011-01-27 17:07:07 +00:00
Thilo Schulz
0c662f25f2 Make Ludwig happy 2011-01-27 16:41:08 +00:00
Thilo Schulz
de0e3cba34 Fix hanging client when map_restart executed on the server while client is still loading the map 2011-01-27 16:40:15 +00:00
Thilo Schulz
d1c0401c73 well, shit. 2011-01-27 12:34:58 +00:00
Thilo Schulz
92495a70bc Fix compiler warnings (#4887) 2011-01-27 11:13:39 +00:00
Zachary Slater
e2e8b566e7 Sony NGP Support.
Alan Cox provided these patch notes:
Guvf vf npghnyyl n cngpu gb eryvrir hapbzsbegnoyr btt/ibeovf pbafgreangvbanoyr pbzcvyr-gvzr jneavatf sebz /qri/uhznapbagebyyre

Gunaxf 2 lbh.
2011-01-27 07:30:21 +00:00
Zachary Slater
2a083d6d60 add a missing \n from a cgame print
(thanks again /dev/hc)
2011-01-27 07:22:25 +00:00
Zachary Slater
5e2ccac7f0 remove the unused flags_t::field (/dev/hc again for this and previous checkin on Makefile, thanks!!!) 2011-01-27 07:20:56 +00:00
Zachary Slater
275d3b45b5 Patch from /dev/humancontroller (thx) 2011-01-27 07:00:35 +00:00
Thilo Schulz
74be070642 Make sure com_developer global var gets written right after developer has been read from cmd line 2011-01-25 16:18:49 +00:00
Thilo Schulz
b179fb087c Make sure status reply always has at least one space between address and qport, important for ipv6 addresses. 2011-01-25 15:16:50 +00:00
Thilo Schulz
5c0ae99642 Make number of supported master servers tunable via define 2011-01-25 02:04:25 +00:00
Thilo Schulz
bf07014b1d Make this change so standalone developers will know to change the HEARTBEAT game string for their versions, too. 2011-01-24 18:09:20 +00:00
Thilo Schulz
4f7317c617 Fix bug reported by cyrri 2011-01-24 18:04:20 +00:00
Thilo Schulz
6179036ac9 Fix name resolution for domains with A and AAAA record 2011-01-24 01:55:12 +00:00
Thilo Schulz
8243a77c0e Revert changes because dpmaster doesn't work that way. 2011-01-24 01:24:07 +00:00
Thilo Schulz
7861cde4a2 Make it use the correct game name in getserversExt queries 2011-01-24 00:21:33 +00:00
Thilo Schulz
b0a753eb0f Fix this bug in a better way. 2011-01-22 01:13:30 +00:00
Thilo Schulz
fdb66505bf Fix potential segfault when no PK3s have been loaded (may happen when compiled with -DSTANDALONE) 2011-01-22 01:10:34 +00:00