Jeod
07262f6fef
Merge pull request #338 from JeodC/renderdistance
...
Bump MAX_CELLS_TO_RENDER
2024-05-13 09:08:15 -04:00
C.W. Betts
446ead20d6
Make plug-ins and modules only export select symbols.
2024-05-13 01:22:40 -06:00
Azamat H. Hackimov
71244290e0
Merge pull request #333 from Jayman2000/minor-hog-id-detection-improvements
...
Minor improvements to `cf_OpenLibrary()`’s HOG2 id detection code
2024-05-13 04:18:24 +03:00
Jason Yundt
d5e893fcb4
Prevent potential uninitialized memory access
...
Before this change, cf_OpenLibrary() did something along the lines of
this:
char id[4];
fread(id, 4, 1, fp);
strncmp(id, "HOG2", 4);
If fread() finishes successfully, then that code is fine. However,
fread() might encounter an error or bump into the end of a file. In
those scenarios, the value of id will not necessarily be initialized
[1]. In other words, when fread() fails, strncmp() might operate on
uninitialized memory.
This change makes sure that the value of id only gets used if fread()
succeeds. Additionally, this change fixes a GCC warning about ignoring
fread()’s return value.
[1]: <https://en.cppreference.com/w/cpp/io/c/fread >
2024-05-12 20:38:35 -04:00
Jason Yundt
e042925001
Stop using hard coded value for HOG2 id length
...
Before this change, cf_OpenLibrary() was inconsistent. Sometimes, it
would refer to the size of a HOG2 id using the literal 4. Other times it
would refer to the size of a HOG2 id using strlen(HOG_TAG_STR). There
was a good reason for this. Some compilers allow you to do this:
char id[strlen(HOG_TAG_STR)];
Other compilers throw an error if you try to do that [1].
This commit makes cf_OpenLibrary() more consistent. It makes it so that
cf_OpenLibrary() always uses the same constant expression when referring
to HOG_TAG_STR’s length.
[1]: <https://devblogs.microsoft.com/oldnewthing/20221114-00/?p=107393 >
2024-05-12 20:38:32 -04:00
Jeod
febc90c2d3
Merge pull request #329 from pzychotic/window-mode
...
Window mode
2024-05-12 16:48:03 -04:00
JeodC
439572a2a3
Bump MAX_CELLS_TO_RENDER
...
Bump max cells to 32678 from 8000, allowing a much larger render distance for outdoor terrain. This commit also fixes MAX_HORIZON_PIECES, which may have been broken during a clang-format.
2024-05-12 15:25:52 -04:00
Jeod
bb98a2eb03
Merge pull request #337 from Lgt2x/gamegauge-removal
...
Remove Gamegauge and -timetest command-line argument
2024-05-12 15:11:58 -04:00
Louis Gombert
196c155895
Remove Gamegauge and -timetest command-line argument
...
Gamegauge is an outdated 3D performance benchmark tool. The -timetest command was used to activate it. Read more about about it here: https://www.gamespot.com/articles/3d-gamegauge-explained/1100-2463688/
2024-05-12 18:32:46 +02:00
ziplantil
3a0ec74460
move md5 tests to md5/tests/
2024-05-12 18:07:13 +03:00
ziplantil
9c1f6e4b73
fix 64n+56 bug
2024-05-12 18:07:13 +03:00
ziplantil
b12baa9715
add one more test; this feeds 60 bytes and tests 'overflow' in blocks
2024-05-12 18:07:13 +03:00
ziplantil
93ea1b7d42
replace md5 with custom implementation, with tests
2024-05-12 18:07:13 +03:00
Jeod
6a3e3060ed
Cleanup init.cpp ( #334 )
...
Cleans init.cpp. Removes a lot of outdated code and adds some extra messages for debugging.
2024-05-12 16:51:20 +02:00
Thomas Roß
2904af5762
Merge branch 'DescentDevelopers:main' into window-mode
2024-05-12 12:07:54 +02:00
Jeod
ed385adb59
Merge pull request #336 from Arcnor/fix_330_b
...
OpenGL fix for certain drivers/cards
2024-05-11 17:42:29 -04:00
Edu García
23abc42faa
OpenGL fix for certain drivers/cards
2024-05-11 22:34:05 +01:00
Jeod
9e582a9245
Merge pull request #335 from JeodC/boanotvalid
...
Silence boa error
2024-05-11 10:51:07 -04:00
JeodC
a6bde8ce6d
Silence boa error
2024-05-11 10:02:15 -04:00
Louis Gombert
0cba11c908
Merge pull request #328 from MaddTheSane/xcodeAsan
...
Quiet/fix a couple of static analyzer warnings as reported by Xcode.
2024-05-11 01:20:15 +02:00
C.W. Betts
d3a486ee24
Remove commented-out code.
2024-05-10 12:53:06 -06:00
Thomas Roß
2809da9a35
[Windows,Mouse] Restricted the mouse movement to the actual window area to prevent accidental focus loss by clicking outside the window.
2024-05-10 17:12:36 +02:00
Thomas Roß
e9a8755da7
[WindowMode] Prevent application window to minimize when the game is inactive.
2024-05-10 17:08:21 +02:00
C.W. Betts
1746a57688
Quiet another asan bug.
2024-05-09 21:15:18 -06:00
C.W. Betts
3bb0caafc4
Quiet/fix a couple of static analyzer warnings as reported by Xcode.
2024-05-09 21:02:44 -06:00
Edu Garcia
f793797088
Merge pull request #325 from Arcnor/png-screenshot
...
Save screenshots as PNG
2024-05-09 23:22:30 +01:00
Jeod
6f3cdd78f2
Merge pull request #321 from Arcnor/deadcode-removal5
...
more software renderer code removal
2024-05-09 18:15:05 -04:00
Louis Gombert
43b11574fd
Merge pull request #323 from Arcnor/renderer-refactor2
...
Renderer refactor 2
2024-05-10 00:07:13 +02:00
Edu García
7ccc38e64f
restore renderer_type numbering to avoid issues when loading config
2024-05-09 22:58:51 +01:00
Edu García
80c207d41c
save screenshots as PNG
2024-05-09 22:46:17 +01:00
Edu García
5d8affda0e
small bitmap code cleanup
2024-05-09 22:43:04 +01:00
Edu García
20e6f4d915
[gl] extracted some common GPU rendering code (polygon rendering functions)
2024-05-09 13:16:01 +01:00
Edu García
fc55671f61
[gl] use single structure for vertex data
2024-05-09 13:16:01 +01:00
Edu Garcia
1f94e623b2
Merge pull request #315 from Arcnor/renderer-refactor
...
Renderer refactor
2024-05-09 13:15:22 +01:00
Edu García
860c9e8826
[gl] cleanup
2024-05-09 12:19:00 +01:00
Edu García
fbd6350917
more software renderer code removal
2024-05-09 12:11:49 +01:00
Jeod
7d38dde25d
Merge pull request #293 from JeodC/joinedcomments
...
Join license header with historical comments
2024-05-08 15:08:25 -04:00
JeodC
f01d76600f
Use all known filetypes in gitattributes
2024-05-08 14:41:19 -04:00
JeodC
c909c8155b
Move gplheader and gpl.sh to tools folder
2024-05-08 14:41:19 -04:00
JeodC
a4ab78192c
Join license header with historical commentrs
...
Join the license header with historical comments using a separator so IDEs can correctly parse the initial header.
Also use .gitattributes to ensure all files are LF.
2024-05-08 14:41:19 -04:00
Jeod
bef66432bc
Merge pull request #307 from JeodC/hudfix
2024-05-08 14:21:45 -04:00
Jeod
bfb3fc1980
Merge pull request #302 from winterheart/hog-tcp-ip
2024-05-08 14:21:13 -04:00
Edu García
f7042717e1
[gl] remove dead code
2024-05-08 18:10:07 +01:00
Edu García
2e59199b24
[gl] extracted some common GPU rendering code
2024-05-08 18:08:19 +01:00
Edu García
d93ca0d5fd
[gl] extracted some common GPU rendering code
2024-05-08 18:06:06 +01:00
Edu García
30eef961c5
[gl] Overlay_[type|map] -> gpu_Overlay_[type|map]
2024-05-08 18:04:52 +01:00
Edu García
558b9bb120
[gl] extracted some common GPU rendering code
2024-05-08 18:03:44 +01:00
Edu García
f1941de990
[gl] extracted some common GPU rendering code
2024-05-08 18:01:22 +01:00
Edu García
9b936995ce
[gl] Alpha_multiplier -> gpu_Alpha_multiplier
2024-05-08 17:58:59 +01:00
Edu García
7ce523cd5a
[gl] extracted some common GPU rendering code
2024-05-08 17:57:06 +01:00