Commit graph

232 commits

Author SHA1 Message Date
628a27b38b Remove deprecated ffmpeg initialization 2020-05-30 02:32:30 +02:00
c4409487fd Const correct (most) strings
At least those cases that are reported by gcc and/or clang.
2020-05-30 02:32:30 +02:00
8ddbab1cc2 Include bink.h where needed 2020-05-30 02:32:30 +02:00
e43f651bbc Enable SDL2 code
Apparently it works (for me).
2020-05-21 21:07:49 +02:00
6d53d0b217 Remove stub definition for WaterFallBase
It’s defined in opengl.c and gcc≥10 rejects multiple definitions.
2020-05-21 21:03:45 +02:00
7830584796 Include the --debug option in help text 2020-04-23 18:52:43 +02:00
e2af28bdca Remove extraneous parens from ifs
Reported by clang.
2020-04-23 18:52:43 +02:00
c195987770 Use strcat instead of strncat for a constant string
GCC complains otherwise.
2020-04-23 18:52:43 +02:00
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