Commit graph

224 commits

Author SHA1 Message Date
49d9cf6d7f Fix format conversion specifiers for pointers
Use %p instead of %x + cast to int. Reported by GCC.
2020-04-23 18:52:43 +02:00
e7564e9f9d Fix single-player menu initializer
Without a designator the first member of the union is initialized,
which makes clang warn about conversion between enums.
2020-04-23 18:52:43 +02:00
26ea21551e Don’t discard const when copying a pointer
Reported by GCC.
2020-04-23 18:52:43 +02:00
b87daf8d02 Compare return value of strncmp to 0, not NULL 2020-04-23 18:52:43 +02:00
e5ce2cb250 Don’t return a value from void function 2020-04-23 18:52:43 +02:00
d57a0621de Add missing field initializers to damage profile definitions
Cannot be _sure_ which values are missing, but looking at the usage
it’s likely MakeExitWounds, which is only set for bullets.
2020-04-23 18:46:13 +02:00
f5978aef79 Remove accidental semicolon
Reported by clang.
2020-04-23 18:45:43 +02:00
df6ea6eef6 Fix an off-by-one in ScanHModelForDecals
VECTORCH has four elements. Reported by GCC.
2020-04-23 18:45:33 +02:00
ecfbee98c5 Fix an off-by-one error in key config menu
When checking for user input in the keyboard config menu, a read past
the end of the DebouncedKeyboardInput array returned a nonzero value
on some systems, which prevented setting a valid binding.
2020-04-23 18:39:20 +02:00
152e6d7f26 Fix crash in DrawMainMenusBackdrop
Remove some obsolete and dysfunctional code that was triggered when
binked menu background was implemented.
2020-04-23 18:39:15 +02:00
neuromancer
805bc3e30e updated README 2019-08-20 03:56:43 +02:00
gaa-cifasis
310cf0da7c merged support for playing bink cutscenes and added 1366x768 resolution 2019-08-20 03:56:27 +02:00
gaa-cifasis
7aea1acf44 added libav to cmake 2019-08-20 03:56:20 +02:00
Steven Fuller
5673c1665a Import icculus.org release (2017-05-05) 2019-08-20 03:51:51 +02:00
Steven Fuller
0de664d0a8 Import icculus.org release (2015-02-14) 2019-08-20 03:51:33 +02:00
Steven Fuller
22475d6d94 Import icculus.org release (2014-12-25) 2019-08-20 03:45:24 +02:00
Steven Fuller
819e239f23 Switched openal-config with pkg-config openal. 2019-08-20 02:22:37 +02:00
Steven Fuller
100970c8d7 Removed obsolete SI-era OpenAL initialization. 2019-08-20 02:22:37 +02:00
Steven Fuller
accc5bbd8d Trying out using alpha test to emulate color keying.
The original D3D code used SetColorKey to remove the transparent bits
from certain textures, like the HUD alien tail.  As there's no
straightforward way to do this in OpenGL without using fragment
programs, enable alpha test to reject fragments with zero alpha.  This
might break a few things that have alpha set to zero when translucency
is off -- I fixed the few cases that I found.
2019-08-20 02:22:37 +02:00
Steven Fuller
e69698d11e Added the missing support for static on the televisions. 2019-08-20 02:22:37 +02:00
Steven Fuller
55ddb88c8e Removed D3DOverlayColourControl. 2019-08-20 02:22:37 +02:00
Steven Fuller
ebfc59249e Fixed graphics issues with the alien sense vision mode. 2019-08-20 02:22:37 +02:00
Steven Fuller
f9f50d1fb0 CFLAGS tweaks. 2019-08-20 02:22:37 +02:00
Steven Fuller
4b5f7e00b6 Adjusted the polygon offset to a more reasonable value. 2019-08-20 02:22:37 +02:00
Steven Fuller
4f2d3fe2c3 Tweaked polygon offset usage.
Tweaked the values used for glPolygonOffset, as the previous values
caused rendering issues with the fire in temple.  The new values
probably reintroduce decal z-fighting with blood and bulletmarks, but
the fire z-fighting was a bigger issue.
2019-08-20 02:22:37 +02:00
Steven Fuller
0d6d5e545a Changed rhw into w as that was how it was used. Also fixed a few warnings. 2019-08-20 02:22:37 +02:00
Steven Fuller
c11821b898 Try not being so lame with the sound initialization. 2019-08-20 02:22:37 +02:00
Steven Fuller
fc69f56b9a Fixed input not working when coming out of a game. 2019-08-20 02:22:37 +02:00
Steven Fuller
6efffab0c5 OpenAL WIP. 2019-08-20 02:22:37 +02:00
Steven Fuller
243e6d8f55 OpenAL WIP. 2019-08-20 02:22:37 +02:00
Steven Fuller
c6dec0e4d9 OpenAL WIP. 2019-08-20 02:22:37 +02:00
Steven Fuller
68a0572d13 OpenAL WIP. 2019-08-20 02:22:37 +02:00
Steven Fuller
2e7aec7855 Removed SupportFPMathsFunctions and SupportFPSquareRoot macros. 2019-08-20 02:22:37 +02:00
Steven Fuller
d655ca3f04 Removed an unused variable. 2019-08-20 02:22:37 +02:00
Steven Fuller
a176617318 Fixed a few warnings. 2019-08-20 02:22:37 +02:00
Steven Fuller
c948a59391 Removed Watcom Compiler support. 2019-08-20 02:22:37 +02:00
Steven Fuller
02db356511 Removed more unused code. 2019-08-20 02:22:37 +02:00
Steven Fuller
2a737d91fc Removed unused file. 2019-08-20 02:22:37 +02:00
Steven Fuller
40fa3975bf Fixed prototype. 2019-08-20 02:22:37 +02:00
Steven Fuller
25260a55dc Fixed an undefined value assert. 2019-08-20 02:22:37 +02:00
Steven Fuller
adbf5e440d Switched to the C version of TranslatePoint. 2019-08-20 02:22:37 +02:00
Steven Fuller
2d2faf1247 Worked around a crash during level reloads.
Global state in bh_marin.c isn't being deinitialized,
and this was causing some code to incorrectly execute
during a level restart.  Said code has been commented out,
as it appears to have been previously disabled.

Improved the deinitialization in pheromon.c to make similar
crashes more obvious.
2019-08-20 02:22:37 +02:00
Steven Fuller
5d730a8930 Removed redundant prototype that accidently got left in. 2019-08-20 02:22:37 +02:00
Steven Fuller
0cab37ee8b Got the Windows WIP branch to build in Linux. 2019-08-20 02:22:37 +02:00
Steven Fuller
7213d91585 Windows WIP.
Added VS-style structure packing support.
2019-08-20 02:22:37 +02:00
Steven Fuller
2fee7a06b4 Windows WIP.
Implemented the rest of winfiles.c to get user profiles working.
2019-08-20 02:22:37 +02:00
Steven Fuller
98a746b5c4 Windows WIP. 2019-08-20 02:22:37 +02:00
Steven Fuller
56b6d2078a Removed trailing '/' from temp starting paths. 2019-08-20 02:22:37 +02:00
Steven Fuller
e9788e390d Windows WIP. 2019-08-20 02:22:37 +02:00
unknown
c51b91cfe7 Windows WIP. 2019-08-20 02:22:37 +02:00