Commit graph

2255 commits

Author SHA1 Message Date
Ozkan Sezer
ee3e65cc78 update SDL2 to 2.0.22-rc2 2022-04-21 21:50:02 +03:00
Ozkan Sezer
530cbecc7d update PR_PatchRereleaseBuiltins further:
invent and use an exbuiltin_t table. a good side-effect of this is that
it makes sure that the ex_??? builtins' first_statement is actually 0.
2022-04-21 11:33:32 +03:00
Ozkan Sezer
c17a750569 update PR_PatchRereleaseBuiltins for Quake 2021 rerelease update 3:
Quake 2021 release update 3 changes rerelease-specific builtins to be looked up
by name rather than hardcoded builtin nums to avoid conflict with other engines.
(https://steamcommunity.com/games/2310/announcements/detail/3177861894960065435)
Patch them to use the indices, and also add its new builtins.
2022-04-21 03:25:24 +03:00
Ozkan Sezer
43a85fb24f added PR_PatchRereleaseBuiltins for Quake 2021 rerelease update 1,
and removed the relevant centerprint, bprint, and sprint entries
from pr_builtins[].

cherry-picked from the original patch for vkQuake by Andrei Drexler
2022-04-21 03:25:24 +03:00
Ozkan Sezer
d119208ab2 silence 'Unknown command "scr_usekfont"' message from 2021 re-release. 2022-04-21 03:25:24 +03:00
Ozkan Sezer
1711f6ecc4 rebuilt SDL-1.2 for mac from latest git source. 2022-04-13 18:24:04 +03:00
Ozkan Sezer
9aaad50acf rebuilt SDL2 for macOS 2022-04-09 14:55:11 +03:00
Ozkan Sezer
60191aefa0 upgrade to SDL2-2.0.22-rc1 2022-04-09 14:33:02 +03:00
Ozkan Sezer
963646b6cd rename QuakeSpasm-SDL2-64.xcscheme too. 2022-04-06 14:04:00 +03:00
Ozkan Sezer
23782d657f Xcode, Info.plist: changed x86_64 min target to 10.6 for compatibility 2022-04-06 12:55:40 +03:00
Ozkan Sezer
0974ef4024 Xcode: removed irrelevant OTHER_CFLAGS / OTHER_LDFLAGS from x64 target 2022-04-06 12:55:24 +03:00
Ozkan Sezer
f53706392e Xcode: renamed QuakeSpasm-SDL2-64 target to QuakeSpasm-SDL2-x64 2022-04-06 12:55:10 +03:00
Ozkan Sezer
40423a1d2c remove irrelevant xcuserdata from Xcode project 2022-04-06 12:32:56 +03:00
atsb
7bca6a764d 2 new targets within the original xcode project 2022-04-05 20:47:13 +02:00
Andrei Drexler
e6d65c5aa4 Don't autoplay next demo after a timedemo
This happened when starting the game
with either -fitz or cl_startdemos 1
and then executing 'timedemo demo1'
while a title demo was still playing
2022-04-02 11:50:10 +03:00
Andrei Drexler
f943e742dc Add cl_startdemos cvar
https://github.com/andrei-drexler/ironwail/issues/21
2022-04-02 11:50:10 +03:00
Andrei Drexler
0b30541ab9 Replace manual demo cdtrack parsing with evil fscanf
This fixes the missing music in hipdemo1 caused by a leading space
character before the cdtrack number, which ended up being parsed
incorrectly.  https://github.com/andrei-drexler/ironwail/issues/60

Note: original issue with fscanf (mentioned in the code comments)
was caused by the inclusion of the newline in the format string.
We work around it by reading the newline character separately.
2022-04-02 11:50:10 +03:00
Ozkan Sezer
ae97a7b5ed Key_Console: change strcpy to memmove for K_UPARROW and K_DOWNARROW 2022-03-31 23:02:20 +03:00
Ozkan Sezer
633fa48842 use _Static_assert for COMPILE_TIME_ASSERT if available 2022-03-31 17:01:02 +03:00
Ozkan Sezer
1baf872843 Mod_PointInLeaf: make declaration match its definition. 2022-03-29 23:02:02 +03:00
Ozkan Sezer
b0767dbc90 add back snd_modplug (disabled, for future ref.), update project files. 2022-03-29 17:04:02 +03:00
Ozkan Sezer
fb87b63d19 lodepng: fixed MSVC C4334 warnings in 64 bit builds
1>D:\sezero\quakespasm-git\Quake\lodepng.c(689,54): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
1>D:\sezero\quakespasm-git\Quake\lodepng.c(708,39): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
1>D:\sezero\quakespasm-git\Quake\lodepng.c(5467,33): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)

c.f.: https://github.com/lvandeve/lodepng/pull/142
2022-03-26 05:00:32 +03:00
Ozkan Sezer
a4b630a8ce updated SDL, libmikmod and libxmp builds. 2022-03-23 10:02:50 +03:00
Ozkan Sezer
d239a8911d snd_umx.c (get_objtype): make sure that 'sig' array is initialized. 2022-03-21 20:21:24 +03:00
Andrei Drexler
065c158254 Quad/pentagram dlights for 2021 rerelease 2022-03-11 23:55:10 +03:00
temx
6cf0547d01 Fix SZ_GetSpace server crashes
See https://github.com/Novum/vkQuake/pull/438.  Also see
    https://github.com/andrei-drexler/ironwail/issues/32

Note: Changing that 24 to 39 does prevent the crash, but
the buffer size is still insufficient, so some entities
(e.g. nails) are missing occasionally. A MAX_DATAGRAM of
48000 seems enough to fix that (MAX_DATAGRAM in ironwail
has been bumped to 64000.) Long term though, it would be
much better to add support for pkt fragmentation like in
QSS since this jumbo packet size is only used in single-
player mode - multiplayer uses the much smaller value of
DATAGRAM_MTU (just 1400 bytes.)
2022-03-11 23:55:10 +03:00
Andrei Drexler
32b1ebb828 Fix mouse input truncation with non-integral sensitivity 2022-03-11 23:55:10 +03:00
Ozkan Sezer
c5a45e7e58 move DEG2RAD macro to mathlib.h.
From a patch by Andrei Drexler
2022-03-11 23:55:10 +03:00
Ozkan Sezer
144b43f333 update lodepng to 20220109 version from mainstream. 2022-03-01 14:20:02 +03:00
Ozkan Sezer
b76d5e1b9f miniz updates:
- update from mainstream master to fix mainstream PR/159#issuecomment-1046220324
- fixes by Alice Rowan for mainstream issue 220
2022-03-01 11:56:10 +03:00
Andrei Drexler
14b7338946 Fix intermission camera angles during demo playback
(see https://github.com/sezero/quakespasm/issues/18)
2022-03-01 11:20:10 +03:00
Andrei Drexler
ec49ef2441 Add 'horde' cvar (for 2021 rerelease) 2022-03-01 11:20:10 +03:00
Andrei Drexler
9582f6c7b6 Change STRUCT_FROM_LINK to avoid potential undefined behavior 2022-03-01 11:20:10 +03:00
Andrei Drexler
a1f522701a Tweak PF_findradius 2022-03-01 11:20:10 +03:00
Andrei Drexler
6642ad63b7 Raise window after showing it
Potential fix for https://github.com/andrei-drexler/ironwail/issues/27:
The focused window is not the game window on initial startup until the
game window is clicked on with mouse. Confirmed that it doesn't happen
with only one screen.
2022-03-01 11:20:10 +03:00
Zus
087f856816 Read the texture coords properly while loading MD3 model 2022-01-29 22:58:46 -05:00
Ozkan Sezer
743c983060 miniz: updates from mainstream PR/159
--
2022-01-27 08:10:04 +03:00
Ozkan Sezer
f260464d96 miniz: fixed a bad return introduced in previous update. 2022-01-23 10:02:02 +03:00
Ozkan Sezer
b5bb9976c2 fixed typo in changelog 2022-01-22 20:10:24 +03:00
Andrei Drexler
8f4c5b3dfa Skip leading whitespace in Q_atoi and Q_atof
This matches the standard library and also fixes the following bug:
- load ad_sepulcher and move to an area where water is visible
- open up the console
- save waterbug
- load waterbug
Water is now invisible as long as the console is still active.

The issue stems from the fact that cvar_set is called at startup
with the arguments ("r_wateralpha", ftos(liquid_alpha)) [1],
and ftos pads its output ("  0.6"). Without skipping the leading
whitespace, Q_atof ends up returning 0, which then gets assigned
to r_wateralpha. This makes the water invisible until a stuffcmd
that sets r_wateralpha again is later received from the server.
With the console open at startup, however, the stuffcmd message
can be delayed indefinitely.

[1] 320f1cec45/world.qc (L641)
2022-01-09 01:25:50 +03:00
Ozkan Sezer
6071c47c91 miniz: fix shadowing warnings (from a patch by Axel Gneiting) 2022-01-07 11:03:04 +03:00
Ozkan Sezer
9c53316dcf updates to miniz:
merges upstream PRs 159, 217, and 220, tweaks to MZ_FORCEINLINE macro,
tweaks to mz_int64 typedefs for older MSVC.
2022-01-03 02:56:04 +03:00
Eric Wasylishen
033c7c1867 macos: update Build_Instructions.md based on feedback 2022-01-02 13:36:29 -07:00
Eric Wasylishen
7acc173b47 mac: remove obsolete SDL1.2 Xcode project target 2022-01-02 13:30:30 -07:00
Eric Wasylishen
d51dc7a194 macos: preliminary auto-build.yml github action
- add build-macos.sh script
- copy Quakespasm-Spiked.txt to build artifacts folder
- create Quakespasm-Spiked-Revision.txt file
2021-12-30 01:39:47 -07:00
Eric Wasylishen
001a54d5b4 macos: add .gitignore 2021-12-29 19:53:28 -07:00
Eric Wasylishen
a2c30f212e macos: new Build_Instructions.md 2021-12-29 19:53:28 -07:00
Eric Wasylishen
414cfd6afa macos: Launcher.nib: change window title to QuakeSpasm-Spiked
also set output version to "deployment target"
2021-12-29 19:53:28 -07:00
Eric Wasylishen
79ab595caf macos: InfoPlist.strings: change app name to QuakeSpasm-Spiked 2021-12-29 19:53:28 -07:00
Eric Wasylishen
ff7e884c44 macos: project.pbxproj: various updates
- add qss source files
- link with static libs from vcpkg
- update header search path for vcpkg
- define USE_ZLIB
- added --deep to OTHER_CODE_SIGN_FLAGS to fix code signing error
  (https://stackoverflow.com/a/60099521)
- use deployment target 10.9
- only build x86_64
- rename QuakeSpasm-SDL2 target to QuakeSpasm-Spiked-SDL2
2021-12-29 19:53:28 -07:00