Commit Graph
2951 Commits
Author SHA1 Message Date
Tim Angus bdbd6ff036 Fix warnings 2025-10-06 20:23:04 +01:00
smallmodel 1e30978722 Set the overflow flag when the number of bits written reaches the maximum size 2025-10-05 20:12:04 +01:00
llbraughler addf0d9bea Implement ShowNormals in RendererGL2 2025-10-04 18:50:47 +01:00
Tim Angus 7d0117c183 Make sound channel exhaustion warning a Com_DPrintf 2025-10-03 20:17:20 +01:00
Tim Angus 441343538a Provide better advice re pak0.pk3 location on macOS 2025-09-25 13:14:03 +01:00
Tim Angus 56f9f94ee7 SV_RehashBans_f may be executed when the server isn't running (#785) 2025-09-22 21:34:59 +01:00
Zack Middleton 266357ffbe Increase start server map limit in Team Arena ui to match q3_ui
Allow reading more scripts/*.arena files and allow up to 1024 maps
instead of 128.
2025-09-22 16:11:02 +01:00
Tim Angus d49ea96203 Don't add quotes when not needed for LCC process spawning 2025-09-19 16:15:41 +01:00
Tim Angus 3d8979f769 Add -Wshadow to compiler warnings 2025-09-08 21:22:31 +01:00
Tim Angus 54a798ad2e Fix typo 2025-09-08 18:28:41 +01:00
Tim Angus f30ace1476 Better warning fix (that doesn't crash) 2025-09-07 20:48:43 +01:00
Tim Angus c0f3fe4b00 Fix quotes in comments 2025-09-07 17:52:51 +01:00
Tim Angus 5449053008 Fix macOS deprecated constants 2025-09-07 17:18:12 +01:00
Tim Angus 65a1da4a01 Enable format warnings under MinGW 2025-09-07 17:18:07 +01:00
Tim Angus 07b9c1bd83 Wrap __attribute__s in macros 2025-09-07 17:16:31 +01:00
Tim Angus f976711fb4 Fix various warnings 2025-09-07 17:03:20 +01:00
Tim Angus 7af7608f62 Fix uninitialised variable warning 2025-09-06 12:10:37 +01:00
Tim Angus 2168a7ac37 More generic de-duplication of path vars 2025-09-05 09:21:43 +01:00
Tim Angus fd76af637f Move online store defines closer to where they're used
It makes little sense to centralise the definitions for things like
Steam, GoG, etc.. These paths are only useful in the case where the user
has derived the data from such a store, has installed ioq3 in a separate
location, and we want it do be able to find said data. If a derivative
project has deployed (binaries and all) on e.g. Steam then for them
fs_basepath will already be correct, and fs_steampath is not useful.
2025-09-04 15:40:55 +01:00
Tim Angus 693c1f1e92 Add null/empty parameter guard to FS_CreatePath 2025-09-04 15:40:55 +01:00
Tim Angus 6b4b1dc84d Remove unused homedir botlib variable 2025-09-04 15:40:55 +01:00
Tim Angus a983d4357b Remove redundant buffers on *nix 2025-09-04 15:40:55 +01:00
Tim Angus 86f9630a40 Remove (non-existent) Sys_SetDefaultHomePath declaration 2025-09-04 15:40:55 +01:00
Tim Angus 9f09335084 Remove unused FS_Rename 2025-09-04 15:40:55 +01:00
Tim Angus 0df22a99d8 Replace FS_*_FOpenFileWrite bodies with call to FS_OSPath_FOpenFileWrite 2025-09-04 15:40:55 +01:00
Tim Angus ca1ea17f0d Add const to FS_CreatePath argument 2025-09-04 15:40:55 +01:00
Tim Angus 3b90b76d7f Rename FS_SV_* to FS_BaseDir_* 2025-09-04 15:40:55 +01:00
Tim Angus cadc8ab017 Add FS_BaseDir_BuildOSPath and replace hacky uses of FS_BuildOSPath 2025-09-04 15:40:55 +01:00
Tim Angus 4b379e447c Reduce duplication in FS path search code 2025-09-04 15:40:55 +01:00
Simon McVittie 3e0b279521 qcommon: Reverse the sense of NO_VM_COMPILED
Instead of defining NO_VM_COMPILED on the unlimited number of CPU
architectures where we don't have a JIT for QVM bytecode, define
HAVE_VM_COMPILED on the finite number of architectures where we do
(x86, PowerPC, Sparc or 32-bit ARM).

Signed-off-by: Simon McVittie <smcv@debian.org>
2025-08-30 22:38:30 +01:00
Simon McVittie 51095c0c0c qcommon: Assume that unknown architectures don't have a JIT for QVMs
We need specific code for any architecture that does have a JIT, so we
can safely assume that any other architecture does not.

Signed-off-by: Simon McVittie <smcv@debian.org>
2025-08-30 22:38:30 +01:00
Tim Angus c0f5ddd436 Allow ARCH_STRING to be undefined 2025-08-30 10:59:58 +01:00
Tim Angus fe9f611ed5 Fallback on legacy game library name if canonical name doesn't exist 2025-08-29 21:30:17 +01:00
Tim Angus 8dfedc60c1 Remove architecture from binary filenames 2025-08-29 21:30:17 +01:00
Jack Slater 92e9ddf02b Update sv_init.c to point to new directory server address
directory.ioquake3.org has a new ip address as well
2025-08-28 22:41:32 -10:00
Tim Angus 3371603c50 OCD 2025-08-27 12:51:39 +01:00
Simon McVittie dc00968bc1 client: Remove i386 GNU assembler version of S_WriteLinearBlastStereo16()
This was the last remaining GNU assembler code that was in its own
independent source file, as opposed to being embedded in C code with
GNU `__asm__ volatile` or MSVC `__asm` (which tends to be much easier
to deal with in a modern build system).

When the Quake 3 engine was originally written, this might have been
an "expensive" function when written in portable C, but after 25 years
of CPU development it's less likely to matter (and modern compilers
might produce faster results from the C code anyway).

Resolves: https://github.com/ioquake/ioq3/issues/778
Signed-off-by: Simon McVittie <smcv@debian.org>
2025-08-23 21:23:03 +01:00
Simon McVittie 9f0280bca1 Remove unused matha.S
Before commit a7d33b1c "(bug #3639) BoxOnPlaneSide rewrite" there
was more code here, but since then the only thing left is the
Invert24To16 function, to which I couldn't find any references since
the beginning of ioquake3's git history.

Resolves: https://github.com/ioquake/ioq3/issues/774
Signed-off-by: Simon McVittie <smcv@debian.org>
2025-08-23 21:23:03 +01:00
Tim Angus d133be28eb Add DEFAULT_RELATIVE_BASEDIR
Sys_BinaryPathRelative takes a parameter which is path concatenated with
Sys_BinaryPath, and resolved to a canonical path. The intended use case
is to facilitate the situation where you want the game data directory to
exist outside the same directory in which the binary lives, but relative
to it. More specifically, if you want to distriute multiple binaries for
different architectures, in the same tree, this allows for a means of
having said binaries in architecture subdirectories, with a shared data
directory, e.g.:

  ioq3/x86/ioquake3.exe etc.
  ioq3/x86_64/ioquake3.exe etc.
  ioq3/baseq3/pak0.pk3 etc.

Here, when building you would define DEFAULT_RELATIVE_BASEDIR=".." by
appending it to the build system CFLAGS, and then the executables will
by default look in their parent directory for the data.
2025-08-23 21:01:08 +01:00
Simon McVittie 9293a45368 asm: Remove unused S_PaintChannelFrom8
This is `#if 0` anyway, and has been since the initial Quake 3 Arena GPL
release, so clearly it hasn't been used for some time.

Signed-off-by: Simon McVittie <smcv@debian.org>
2025-08-23 12:04:28 +01:00
Tim Angus 2d7100dc97 Fix HTTP downloads being disabled after first download (issue #768) 2025-08-23 11:48:43 +01:00
Tim Angus 3aee97dfab Fix GCC x86 build 2025-08-22 18:38:46 +01:00
smallmodel b297c596e9 Add Windows ARM platform 2025-08-19 11:00:27 +01:00
Tim Angus a36d9bc392 Remove clientHtmlFallback 2025-08-13 13:06:14 +01:00
Tim Angus 787bdba0ec Rewrite the LCC process spawning code on Windows, to handle file names containing spaces 2025-08-12 20:10:46 +01:00
Tim Angus 0912659484 Move responsibility for defining NO_VM_COMPILED from build system to q_platform.h 2025-08-07 15:10:24 +01:00
Tim Angus 858ccc928c Add architecture guards to VMs 2025-08-07 15:10:24 +01:00
Tim Angus 2c91b38899 Simplify VM sources for old architectures 2025-08-07 15:10:24 +01:00
Tim Angus 1591f4ad1c Whitespace fixes 2025-08-05 21:15:09 +01:00
Tim Angus 31f79ca94e http -> https on URLs 2025-08-05 15:48:59 +01:00