Commit Graph

406 Commits

Author SHA1 Message Date
Tim Angus 3ebe048968 * Fix a memory leak in OS X Sys_Dialog
* Fix compilation on Snow Leopard
2010-02-26 16:32:49 +00:00
Tim Angus 005f870ebe * Sys_Dialog for more user friendly error reporting
* (bug #3932) Recovery from bad video settings
2010-02-15 16:20:33 +00:00
Ludwig Nussel 4876413217 __WORDSIZE is not available on non-GNU systems (Dominic Fandrey) 2010-01-16 10:55:51 +00:00
Tim Angus 9018fedd16 * Clean-up whitespace in net_ip.c 2010-01-10 18:28:32 +00:00
Tim Angus 240b25a41f * (bug #4271) FreeBSD fixes (Dominic Fandrey) 2010-01-07 19:53:52 +00:00
Tim Angus e7f9b8d193 * That probably deserves a Com_DPrintf as well 2010-01-03 22:07:20 +00:00
Tim Angus bb30f51f67 * (bug #4357) CVAR_ROM+CVAR_ARCHIVE is not read from q3config 2010-01-03 19:44:37 +00:00
Tim Angus 78df7a1de4 * (bug #4346) Dedicated server uses 100% CPU when stdin is not a TTY
* com_speeds reports misleading values on dedicated server (Guillaume Bougard)
2009-12-24 00:40:39 +00:00
Tim Angus fa2a698aa3 * (bug #4369) Cvar modified flags are not updated in Cvar_Get (Lakitu7) 2009-12-18 21:57:56 +00:00
Thilo Schulz 10cdcdb0a1 Forgot this one 2009-11-14 01:59:01 +00:00
Thilo Schulz 258429efe7 - Add unset command for cvars created by the user
- Fix crash bug when maximum number of cvars has been reached
- Fix cvar_restart
- Add possibility to cleanly switch mods ingame (#2819)
2009-11-09 22:41:42 +00:00
Thilo Schulz 606ce66726 This is true always, anyways. 2009-11-09 13:50:48 +00:00
Thilo Schulz 5785b45e6a Shut up warn_unused_result warning 2009-11-08 17:00:27 +00:00
Tim Angus 108705d31f * Rewrite win32 Sys_Mkdir to use CreateDirectory
* Make FS_ReplaceSeparators filter out runs of multiple separators
* Make FS_CreatePath skip creation of the root directory
2009-11-07 16:43:02 +00:00
Tim Angus 0f9a5e09eb * Improve displayed error message when pak?.pk3 is missing 2009-11-06 16:25:14 +00:00
Thilo Schulz 4ba2452f83 Use new Sys_SetEnv here 2009-11-06 10:50:16 +00:00
Tim Angus eee9770fbf * Reimplement r1597-1598 in a better way (Oopss)
* Fix Sys_SetEnv warning
2009-11-05 20:20:23 +00:00
Thilo Schulz 621f91783c Different default values for multicast-scope on Windows and non-Windows OS 2009-11-04 00:42:22 +00:00
Ludwig Nussel 3d7d2d9f5b check all jumps (#4249) 2009-11-01 19:58:27 +00:00
Ludwig Nussel 12189381b5 fix cmp imm reg 2009-11-01 19:58:25 +00:00
Ludwig Nussel da31866f6d report memory violations in debug mode 2009-11-01 19:58:21 +00:00
Ludwig Nussel 4722d311fd better range checks 2009-11-01 19:58:18 +00:00
Ludwig Nussel b7eae0dca5 implement immediate argument for call 2009-11-01 19:58:16 +00:00
Ludwig Nussel ed98f65d10 optimize const before jump 2009-11-01 19:58:12 +00:00
Ludwig Nussel a7dee44def check const jump argument 2009-11-01 19:58:09 +00:00
Ludwig Nussel 469c986640 more security checks in interpreter (#4249) 2009-11-01 19:58:07 +00:00
Ludwig Nussel cc9a74a218 Define stack sizes at central place
also reverts bug 4282 as stack is included in bss already so nothing that needs fixing
2009-11-01 19:58:03 +00:00
Ludwig Nussel 2fecf6d6bc get rid of gas remains 2009-10-26 21:59:03 +00:00
Tim Angus f9c4003186 * Make [sv|cl]_packetdelay work when timescale is not 1 (arQon) 2009-10-25 21:54:45 +00:00
Ludwig Nussel 2fc4023e0b fix zlib includes 2009-10-24 14:19:39 +00:00
Thilo Schulz c05d9c9f0c Fix uninitialized words in VM interpreter, reported by Patrick Baggett (4281) 2009-10-23 03:02:08 +00:00
Tim Angus c8583df572 * D'oh, vm_ppc.c isn't used any more 2009-10-20 11:47:34 +00:00
Tim Angus d47509b861 * Sort out the white space disaster in vm_ppc.c 2009-10-20 11:44:25 +00:00
Tim Angus 60ed7a4cc4 * (bug #4249) Fix similar overflow in PPC VM (untested) 2009-10-20 11:36:45 +00:00
Tim Angus 5663ff1362 * (bug #4249) Fix buffer overflow in x86 VM 2009-10-19 23:01:00 +00:00
Thilo Schulz fd57c987c4 Fix infinite loop in case an invalid pk3 file has been downloaded from the server. Thanks tjw for reporting (#3074) 2009-10-19 22:36:17 +00:00
Thilo Schulz d93cc3c997 Shut up warnings 2009-10-19 18:54:09 +00:00
Thilo Schulz 585e6f9840 - Applied patch from /dev/humancontroller to set cvar_modifiedFlags from Cvar_Set_f (#3636)
- Exchanged ugly code with Cmd_ArgsFrom()
2009-10-19 16:52:16 +00:00
Thilo Schulz cc919c05fd Just unix2dos, nothing to see here ... 2009-10-19 14:00:16 +00:00
Tim Angus 639fdb4ed3 * Fix MinGW build (it doesn't have _putenv_s) 2009-10-13 15:58:23 +00:00
Thilo Schulz 186f30a74f Fix netcode inconsistency, thanks to /dev/humancontroller for the patch, see http://bugzilla.icculus.org/show_bug.cgi?id=4060 2009-10-12 17:17:15 +00:00
Thilo Schulz e48b56559d MinGW doesn't have setenv() either, so..... 2009-10-12 16:20:01 +00:00
Thilo Schulz d86dd71327 Fix environment variable handling for Linux, make setenv command added before parsing of configuration files. (https://bugzilla.icculus.org/show_bug.cgi?id=3626) 2009-10-12 16:03:18 +00:00
Thilo Schulz 5a882a72e4 fs_fakeChkSum is indeed obsolete and unnecessary. Removing it altogether now. 2009-10-12 03:20:44 +00:00
Thilo Schulz fd90f4f579 Fix fake checksum handling if client is unpure, make sure client does not remain unpure after FS_Restart. Thanks to /dev/humancontroller for reporting. http://bugzilla.icculus.org/show_bug.cgi?id=3605, thanks 2009-10-11 16:34:26 +00:00
Tim Angus 8d8ed0b47a * Fix bad syntax in 64bit assembler (Undeference) 2009-10-06 17:56:36 +00:00
Thilo Schulz b2c1618f36 Revert back color code change 2009-10-03 21:41:22 +00:00
Thilo Schulz b433f3d01c - Modify color generating codes to only accept numbers and not alphabetical chars anymore
- Fix client clean name so that it cannot be tricked anymore, see https://bugzilla.icculus.org/show_bug.cgi?id=3313
2009-10-03 21:15:23 +00:00
Tim Angus a7d33b1c54 * (bug #3639) BoxOnPlaneSide rewrite (Diego de Estrada/Patrick Bagget/Daniel
Gibson)
2009-09-21 00:20:43 +00:00
Tim Angus 15ec986478 * ...and make sure it compiles 2009-09-17 20:05:56 +00:00
Tim Angus cc8990495a * (bug #4282) Fix potential overlap of VM stack and bss sections (Patrick
Baggett)
2009-09-17 09:42:05 +00:00
Tim Angus 083bd1b005 * ...and actually r1626 this time 2009-09-16 09:30:21 +00:00
Ryan C. Gordon 826f05f95f Let a separate libdir be specified for loading libraries.
Partially fixes Bugzilla #4271.
2009-09-15 06:32:05 +00:00
Ryan C. Gordon 31ce89361d Fixed amd64 JIT output bug.
Partially fixes Bugzilla #4271.
2009-09-15 06:30:00 +00:00
Ryan C. Gordon 3bca280948 Add x86_64 ARCH_STRING for FreeBSD.
Partially fixes Bugzilla #4271.
2009-09-15 06:27:19 +00:00
Ryan C. Gordon ed241a8b73 Echo console command now colorizes by string, not token.
Fixes Bugzilla #3879.
2009-09-15 05:57:14 +00:00
Ryan C. Gordon aedf24bd72 Allow Cvar_Toggle_f() to iterate through a list of values.
Fixes Bugzilla #3591.
2009-09-15 05:43:53 +00:00
Ryan C. Gordon 33beb9df27 Patched to compile. 2009-09-15 05:30:08 +00:00
Ryan C. Gordon bccd80e523 Added Intel CC compatibility to vm_x86.c's inline asm.
Fixes Bugzilla #3338.
2009-09-15 03:42:29 +00:00
Ryan C. Gordon e2d63b1fea Enable -fvisibility=hidden on Linux.
This will prevent further symbol clashes, and makes the shared libraries
 10 to 20 percent smaller.

We should enable this on other platforms, too, if we can guarantee they'll
 use gcc 4.0 or later and the platform supports it.
2009-09-15 02:48:17 +00:00
Ryan C. Gordon 5079343ecd Fixed infinite recursion of writing crashlog because we're out of file handles.
Fixes Bugzilla #3772.
2009-09-15 00:19:22 +00:00
Ryan C. Gordon 76b7468a9d Don't allow negative arguments to the "wait" console command. 2009-09-14 23:56:09 +00:00
Ryan C. Gordon 82d437ee4f Fixed uninitialized variable. 2009-09-14 19:31:42 +00:00
Ryan C. Gordon 569edcb04e Minor reworking to check command line cvars before Com_InitZoneMemory().
This lets you set com_zoneMegs from the command line (although still not
 from a config file, but oh well).

  Fixes Bugzilla #2571.
2009-09-14 19:28:59 +00:00
Thilo Schulz 9b2b9abd25 - Add error handling for Opensolaris f***ing up a numeric getnameinfo() call.
- Fix memory leak in getaddrinfo() call
Many thanks to Ben Millwood for reporting this.
2009-06-26 18:11:45 +00:00
Thilo Schulz 948f7a6015 - fix typo in previous commit to net_ip.c
- Make servers send heartbeats to master servers in ipv4 as well as ipv6 if master server has both protocols
2009-06-23 00:59:47 +00:00
Thilo Schulz 78254a626f Move these definitions over for other files to use in preparation of the next commit 2009-06-23 00:45:07 +00:00
Thilo Schulz fb5f2a40ad minor cleanup 2009-06-23 00:19:08 +00:00
Thilo Schulz 0d6741fb23 Fix setsockopt so that setting the IPV6ONLY flag really works. 2009-06-22 23:32:11 +00:00
Thilo Schulz 3dddabcc52 Fix highest file descriptor for select(), thanks to Ben Millwood for reporting 2009-06-05 18:54:47 +00:00
Thilo Schulz 18cc7c1ed3 Make servers echo challenge codes from client getchallenge commands 2009-06-01 05:28:47 +00:00
Thilo Schulz eaaaa6f5fc Replace a few sprintf with Com_sprintf 2009-06-01 00:18:02 +00:00
Thilo Schulz e0a2100df5 Fix warning in Sys_RandomBytes() usage 2009-05-31 20:31:56 +00:00
Thilo Schulz 4e8a181073 I'll retain the new way seeding the random number generator.. these calls are therefore redundant 2009-05-31 20:30:37 +00:00
Thilo Schulz e4d0c14f70 Revert changes of rand() to random() as random() was redefined in quake3. 2009-05-31 20:24:10 +00:00
Thilo Schulz b40f1507ea - Introduce seeding of the random number generator at startup
- Replaced all engine-side occurances of rand() with random()
2009-05-31 19:48:28 +00:00
Thilo Schulz 7aed7e8861 Make command net_restart work so that port/ip settings can be changed without server restart 2009-05-29 03:14:49 +00:00
Thilo Schulz 50ca55702f - Introduce new NET_CompareBaseAdrMask for easy comparison of ip address ranges
- Overhaul of the new banning functions:
  * basic check for redundant bans/exceptions
  * introduction of sv_banFile to make it possible to configure the file where to read bans and exceptions from
  * bans can now be deleted by giving address ranges, too.
2009-05-24 16:58:08 +00:00
Thilo Schulz 09d9e5e19b Minor code cleanups 2009-05-21 21:10:25 +00:00
Ludwig Nussel 31ae3826ae make Cvar_Command use all arguments just like Cvar_Set_f (#4063) 2009-05-08 09:13:16 +00:00
Ludwig Nussel 68fa0b55a9 cvarlist: also display systeminfo and user created flags 2009-05-08 09:13:13 +00:00
Ludwig Nussel abda6d984a whitespace correction 2009-05-08 09:13:09 +00:00
Ludwig Nussel ec846d23b2 define STRING and XSTRING in q_shared.h (#4054) 2009-05-05 18:19:29 +00:00
Ludwig Nussel 84fbc2252f align stack before re-entering engine to make sse work (#4051) 2009-05-02 17:15:51 +00:00
Tim Angus 1bd63e59e5 * Remove superfluous comments committed with fix to bug #3999 2009-03-02 22:26:36 +00:00
Ludwig Nussel 35a27638fe initialize qport with random value instead of time (#3999) 2009-03-02 18:08:13 +00:00
Ludwig Nussel 844ee46627 qcommon: vm: Add sparc JIT compiler.
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-03-02 17:29:40 +00:00
Ludwig Nussel 30c44b1a87 qcommon: vm: sparc, like 386, doesn't need var-args conversion.
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-03-02 17:29:35 +00:00
Ludwig Nussel 17a81ff7c9 qcommon: Add idsparc and set when __sparc__ && !C_ONLY
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-03-02 17:29:30 +00:00
Tim Angus 48d8c8876b * s/FS_FilenameIsExecutable/FS_CheckFilenameIsNotExecutable/g
* Fix potential buffer under run in FS_CheckFilenameIsNotExecutable
2009-02-26 13:02:59 +00:00
Ludwig Nussel f5aae78481 security fix: prevent command injection via callvote 2009-01-17 23:09:58 +00:00
Tim Angus 72dea0a184 * Fix some new GCC 4.3 warnings
* Fix many many strict aliasing warnings, now that it's re-enabled
2008-11-10 23:55:22 +00:00
Ludwig Nussel 01dca75d9f realloc vm->instructionPointers on ppc64
rename VM_Malloc, VM_Free to PPC_Malloc, PPC_Free
safer constant optimization handling

Patch by Przemysław Iskra (#3796)
2008-11-10 09:46:31 +00:00
Ludwig Nussel 235945c6bb new PowerPC vm
Patch by Przemysław Iskra (#3796)
2008-11-10 09:46:01 +00:00
Ludwig Nussel c754d6fdfb fix strict aliasing issues
Patch by Przemysław Iskra (#3805)
2008-11-03 17:03:54 +00:00
Ludwig Nussel f86f8e8ed8 fix 64bit VM interface to work on ppc64 (#3838) 2008-11-03 17:03:44 +00:00
Thilo Schulz 83540695b3 Patch to make getnameinfo() call work on OpenBSD systems. Created by agent59692154@spamcorptastic.com 2008-10-29 15:53:46 +00:00
Tim Angus 130c0c6575 * Move command argument completion from being hard coded to being associated
with the individual commands to be completed
2008-09-16 21:05:22 +00:00
Tim Angus 47ee177430 * Supply specific identifier to the master server (Mathieu Olivier) 2008-09-15 20:24:04 +00:00
Tim Angus b2d87c4b2a * Add Com_HexStrToInt
* Fixed some whacky indentation in q_shared.c
* Allow single character keys e.g. 'c' to be used in cl_consoleKeys in addition
  to ASCII characters
* Experimental code to ignore dead keys
2008-09-05 23:38:35 +00:00