Commit graph

4792 commits

Author SHA1 Message Date
Yamagi
c0cf6d5d67
Merge pull request #1197 from DanielGibson/msvc-ci
Github workflow for Visual Studio build
2025-03-29 18:02:24 +01:00
Daniel Gibson
556cbf4fa1 Github workflow for Visual Studio (x86 and x86_64) build
based on the one from dhewm3
2025-03-29 17:56:13 +01:00
Yamagi
c61e0d3266
Merge pull request #1195 from protocultor/fs_fix
Small fix for Flick Stick
2025-03-29 17:37:44 +01:00
Yamagi
c33e0ca848
Merge pull request #1193 from devnexen/atexit_mods
mod names list static allocation free at exit approach
2025-03-29 17:21:32 +01:00
Yamagi
9894b27791 Fix Visual Studio build.
strings.h is POSIX or something like that and not available when
building with Visual Studio Code.
2025-03-29 17:14:15 +01:00
Denis Pauk
a9a4202840 models: reuse Mod_LoadAllocate 2025-03-28 00:41:52 +02:00
Denis Pauk
bb17105d53 models: reuse md2 frames in md5 frame groups 2025-03-26 23:33:37 +02:00
Denis Pauk
84e4035922 models: generate animation groups from frames 2025-03-26 00:05:15 +02:00
Denis Pauk
643d8d7d2b models: use animation names from DKM format 2025-03-24 00:32:33 +02:00
Denis Pauk
76625d706e models: use animation names from SDEF 2025-03-23 22:30:28 +02:00
Denis Pauk
04ecdab2ba models: reuse Mod_LoadAllocate 2025-03-23 22:29:30 +02:00
Denis Pauk
ec30ed21d8 models: allocate single animation group
All supported models uses single animation group by default
2025-03-23 22:16:23 +02:00
Denis Pauk
159fac2993 models: allocate skins buffer separately 2025-03-23 22:08:32 +02:00
Denis Pauk
47d8091125 Cleanup Readme and CMakeLists.txt 2025-03-23 14:56:39 +02:00
Denis Pauk
500bf1b952 jabot: cleanup path usage in A* 2025-03-23 14:21:53 +02:00
Denis Pauk
0d8cba6711 jabot: remove botroam functionality
Trust A* heuristic to search path
2025-03-23 13:49:42 +02:00
Denis Pauk
8aea22e6c6 jabot: rearrange bot commands 2025-03-19 00:43:23 +02:00
Jaime Moreira
60ba33dd40 Flick Stick delta time calculation improved
Default joystick sensitivities increased
2025-03-18 12:43:26 -03:00
David Carlier
839b91b0ee
mod names list static allocation releasing 2025-03-17 18:51:12 +00:00
Denis Pauk
69409594bd jabot: check astart limits 2025-03-16 00:35:02 +02:00
Denis Pauk
04e7a303db jabot: add checkges from 0.9.3 version 2025-03-16 00:35:02 +02:00
Denis Pauk
ec60ebd7f8 jabot: use bot_debugmonster to hide debug messages 2025-03-16 00:35:02 +02:00
Denis Pauk
0fbcbbcdff jabot: Improve navigation save logic 2025-03-16 00:35:02 +02:00
Denis Pauk
5d4a2facbd client: extend multiplayer rules with ctf 2025-03-16 00:35:02 +02:00
Denis Pauk
84cc99d559 client: center chars in ttf font 2025-03-16 00:34:03 +02:00
Denis Pauk
d91c4253e8 client: use ttf fonts in menu 2025-03-15 21:28:32 +02:00
Denis Pauk
3578d4353d Merge remote-tracking branch 'yquake2/master' 2025-03-15 13:42:36 +02:00
Yamagi
d2efa1c9af Fix (potential) problematic use cases of qboolean.
Until 853f832 qboolean was always defined as an enum. Starting with
853f832 it may be defined as bool when building in C23 mode or any
newer standard. There are subtle behavioral differences between enum
and bool, fix these:

* The enum has int as underlying type, floats are cut down to the
  nearest int. Thus 0.5f becomes false. With bool everything which
  is not 0 becomes true. Gone through the code and made sure that
  there are no float to qboolean type conversions.
* Always use true and false, not something else like 1 and 0 or
  (when building under Windows) TRUE and FALSE.
* Fix some corner cases where integers >1 where missused as true.
  These should be noops.
* Fix `R_GreyscaledLight()` misusing qboolean for returning int.

Partly based upon yquake2/yquake2remaster@e3c8d26

Closes #1191
2025-03-15 11:50:37 +01:00
Yamagi
989c30e31d
Merge pull request #1192 from runlevel5/patch-1
Add header for strcasecmp()
2025-03-15 09:49:01 +01:00
Yamagi
27c412055e
Merge pull request #1190 from efliks/fix-build-failed-missing-limits
Fix missing limits header in SDL2 and SDL3 input modules
2025-03-15 09:48:44 +01:00
Denis Pauk
e3c8d26760 fix c23 warnings
https://github.com/yquake2/yquake2/issues/1191
2025-03-14 00:39:43 +02:00
efliks
294d162b06 Include limits in sdl3.c 2025-03-12 01:08:03 +01:00
Trung Lê
1ed01b3033
Add header for strcasecmp() 2025-03-11 23:33:32 +11:00
efliks
6d814f6c41 Fix missing limits header in SDL2 module 2025-03-09 12:54:20 +01:00
Denis Pauk
26624ab90f game: integrate to game code 2025-03-08 12:37:24 +02:00
Denis Pauk
be2fa70e4d Add jabot code
Based on:
  https://www.moddb.com/mods/jabotq2/downloads/jabot-q2-v09x-win32-and-linux

Copyright 2001-2004 Pat AfterMoon
Copyright 2001 Steve Yeager
2025-03-08 12:10:09 +02:00
Denis Pauk
3e66c9d1fb server: fix send player name in multiplayer game 2025-03-06 23:49:44 +02:00
Denis Pauk
e8984c25f3 console overflow message cleanup 2025-03-06 00:40:53 +02:00
Denis Pauk
f833e24da6 Update readme 2025-03-02 23:06:51 +02:00
Denis Pauk
6755ecf590 gl4: add support of ttf fonts 2025-03-02 15:44:53 +02:00
Denis Pauk
7c768b7587 gl3: add support of ttf fonts 2025-03-02 15:19:40 +02:00
Denis Pauk
82ceca620b gl1, vk: share ttf font code 2025-03-02 12:07:16 +02:00
Denis Pauk
d0e8c83687 vk,gl1: improve font image generation
Change threshold of image transparncy.
2025-03-02 11:22:58 +02:00
Denis Pauk
0bbbf27b23 gl1: support ttf fonts 2025-03-02 00:53:30 +02:00
Denis Pauk
c1689345f4 Merge remote-tracking branch 'yquake2/master' 2025-03-01 22:27:13 +02:00
Yamagi
474dfcb524
Merge pull request #1186 from BjossiAlfreds/door-use-fix
Fixed doors not being usable with NULL activator
2025-03-01 16:51:58 +01:00
Yamagi
eb5a9a15d8 Rename CHAR_WIDTH to CHARACTER_WIDTH.
For some time glibc has defined a macro with the same name in limits.h.
Avoid the warning by renaming our macro.
2025-03-01 13:31:36 +01:00
Yamagi
853f832cbd Fix build with gcc in C23 mode.
I wonder why this didn't give at least a warning in C11 mode. The
pointer missmatched, regardless which C standard we are following.
2025-03-01 12:31:10 +01:00
Yamagi
049784f0df Use build-in bool type when building with C23. 2025-03-01 12:28:57 +01:00
Yamagi
b57de78150 Revert "Force C standard to gnu99 in cmake builds."
This was wrong. For yquake2 the Makefile hasn't forced a C standard
since commit 3a9b8de in 2023.
2025-03-01 12:18:52 +01:00