Commit graph

2203 commits

Author SHA1 Message Date
walkawayy
7385d681ce option_graphics: clamp brightness to avoid rounding errors 2023-03-26 13:54:58 -04:00
walkawayy
8192d9a964 option_graphics: clamp text & bar scaling to avoid rounding errors
Resolves #781.
2023-03-26 13:54:58 -04:00
lahm86
ab7c426b62
music: allow triggers to kill all music
Resolves #785.
2023-03-26 18:52:48 +01:00
lahm86
8dec25999f
music: fix partial masked triggers killing the ambient track
Resolves #763.
2023-03-26 11:39:38 +01:00
walkawayy
8013cdc925
overlay: change bars to better match PS1 and fix scaling options (#776)
* overlay: change bars to better match PS1 and fix scaling options

* refactor screen functions to use text and bar names

* set max UI bar scale to 1.5

* make separate text and bar scaling constants

Resolves #698.
2023-03-25 12:35:41 -04:00
walkawayy
938b25a43e
dart: added dart emitters to the savegame (#779)
dart: added dart emitters to the savegame

Add function for checking legacy savegame save flags
Resolves #774.
2023-03-24 15:25:12 -04:00
walkawayy
2ddff96a18
overlay: fix equipped weapon's ammo showing on inventory screen (#778)
overlay: fix equipped weapon's ammo showing on inventory screen

Resolves #777.
2023-03-23 11:15:44 -04:00
walkawayy
4ccc86293d
effects: increase the number of effects from 100 to 1000
Resolves #623
2023-03-21 16:51:03 +01:00
lahm86
e566fb9d98
lara: fix shotgun arm animation
Resolves #771.
2023-03-19 14:23:49 +00:00
lahm86
c95e2a8103
lara: turn braid to gold with Midas touch (#770)
Resolves #769.
2023-03-15 19:06:38 +00:00
lahm86
eb70f1db59
lara: improve braid control (#768)
Resolves #761.
2023-03-14 14:43:52 +00:00
walkawayy
1c0395c5ef
shell: fix a crash when taking a screenshot of an opening FMV (#765)
Resolves #445.
2023-03-13 19:49:46 -04:00
walkawayy
3c7e2e45c1
lara: fix empty holsters when starting level with shotgun equipped (#758)
lara: fix empty holsters when starting level with shotgun equipped

Resolves #749.
2023-03-13 15:09:51 -04:00
walkawayy
57898a1836
passport: fix requestor arrow position with high savegame numbers
Resolves #756
2023-03-12 22:59:52 +01:00
lahm86
4695c6bd56 data: fix Natla's henchmen's textures
Resolves #744.
2023-03-12 22:46:07 +01:00
lahm86
896607165e
savegame: fix effect crash
Resolves #746.
2023-03-10 15:36:43 +01:00
lahm86
dfb8398599
gfx: fix depth buffer size
Resolves #748.
2023-03-10 15:35:39 +01:00
walkawayy
7bcaa24839
shell: fix a crash when a controller is connected on game exit (#741)
Resolves #663.
2023-03-03 15:29:08 -05:00
walkawayy
6a46e30943 sound: fix some flip effect sounds not playing
Resolves #743.
2023-03-03 14:05:21 -05:00
lahm86
491505f021 data: add PlayStation Uzi SFX (#734)
* data: add PlayStation Uzi SFX

Resolves #152.
2023-03-03 14:05:21 -05:00
lahm86
60ffec9609
data: fix incorrect Colosseum textures (#733)
Resolves #131
2023-02-17 13:32:14 +01:00
lahm86
fe02dd066a
data: create injection framework and braid object (#724)
Resolves #27
2023-02-16 15:44:54 +01:00
Carlo Bramini
aaff9bd766
shell: fix a copy-paste error
MSVC signals some instructions without effect.
2023-01-26 16:36:19 +01:00
Carlo Bramini
ba67d01864
shell: replace snprintf() with strncpy()
This patch removes an snprintf() with the test on the final NUL
character at the end of the string and it replaces it with an
strncpy().
2023-01-25 23:49:06 +01:00
Carlo Bramini
6776e17e91
s/input: remove redundant S_Input_KbdKey() (#718) 2023-01-25 10:27:59 -05:00
Carlo Bramini
e1b6c22366
math: make some tables as const 2023-01-25 16:01:33 +01:00
Carlo Bramini
dd881ab15f sdl_gl: remove SDL_syswm.h from includes.
After committing #680 for supporting SDL_GL and not using SDL_GetWindowWMInfo() anymore, including SDL_syswm.h (which is a Windows-only include file) is no longer needed. This bit had been forgotten in the previous PR.
2023-01-23 09:00:37 +01:00
walkawayy
cb28fd5589
sound: do triggered flip effects even there is no sound
Resolves #583
2023-01-20 15:55:04 +01:00
walkawayy
4f945e3335
rat: fix dead voles looking alive when a room's water drains (#711)
Resolves #687.
2023-01-17 18:33:00 -05:00
walkawayy
31632fb27d
scion: fix Scion 1 respawning on load (#709)
scion: fix Scion 1 respawning on load

Resolves #707.
2023-01-17 14:45:17 -05:00
Marcin Kurczewski
8f034893ef
Merge branch 'stable' into develop 2023-01-16 16:42:40 +01:00
walkawayy
c7cd9a059d savegame: fix death counter breaking old saves with enhanced saves
Resolves #699.
2023-01-16 09:06:41 +01:00
walkawayy
76311fb7e7
savegame: save FX array in order instead of reverse order (#697)
Fixes a crash when using enhanced saves in levels with flame emitters. Resolves #693.
2023-01-15 18:16:02 -05:00
walkawayy
43c24735f5 mummy: add the mummy to the level kill stats if Lara touches it
Resolves #701.
2023-01-15 23:29:01 +01:00
walkawayy
f4e7c3747c passport: fix animation when deselecting
Resolves #703.
2023-01-15 23:27:09 +01:00
Marcin Kurczewski
d6f8ec9df9 gfx: refactor get_extension_support 2023-01-15 23:26:16 +01:00
Carlo Bramini
ffb9e8b51e
context: migrate from wgl_ext to SDL_GL (#680)
Migrate to SDL_GL functions made available in SDL2. Remove wgl_ext.c and wgl_ext.h.

Add additional information to the log file to help debug issues like #582.
2023-01-15 11:14:07 -05:00
Carlo Bramini
7afb2b9db0
music: remove unused check in Music_Play (#684)
Also replace hard coded track numbers with MUSIC_TRACK_ID constants.
2023-01-15 11:11:10 -05:00
Carlo Bramini
7d5e22487c
s/shell: Add support for older FFmpeg for Windows XP support (#695) 2023-01-11 18:20:00 -05:00
walkawayy
59aafc0542
save_crystal: fix collision pushing Lara through walls (#691)
Resolves #682.
2023-01-07 16:37:08 -05:00
Carlo Bramini
a589a628ec s/audio: Get rid of lock/unlock after opening audio device
According to:

https://wiki.libsdl.org/SDL2/SDL_OpenAudioDevice

a device is always in paused state after SDL_OpenAudioDevice(), so in my opinion it is safe to initialize m_WorkingBuffer[] and then start the playback. This will avoid the need to use lock/unlock stuff.
2023-01-07 10:56:32 +01:00
Carlo Bramini
343a105516 music: add support for multiple file formats.
This patch adds support for more audio formats when playing audio tracks.
2023-01-06 12:59:59 +01:00
Carlo Bramini
9f0675f53a
misc: remove some unused symbols 2023-01-05 22:19:22 +01:00
Carlo Bramini
d2acd2bb8c
misc: add stddef.h to global/types.h (#683)
While compiling my UNIX port of Tomb1Main, I got some error messages like this one:

In file included from src/game/camera.c:7:
src/game/sound.h:19:5: error: unknown type name ‘size_t’
   19 |     size_t num_samples, const char **sample_pointers, size_t *sizes);
      |     ^~~~~~
src/game/sound.h:1:1: note: ‘size_t’ is defined in header ‘<stddef.h>’; did you forget to '#include <stddef.h>’?
  +++ |+#include <stddef.h>

I would like to suggest to add an #include <stddef.h> into global/types.h.
This fix required some adjustments to satisfy the linters.
2023-01-01 23:06:32 +01:00
Carlo Bramini
43e096e68a
log: fix varargs for Log_Message()
On Linux, the engine crashes when printing the log messages. This
happens because the current code re-uses the same va_list variable on
two calls to vprintf() and vfprintf(). Actually, this is not allowed.
For using the same information on multiple formatting functions, it is
needed to create a copy of the primary va_list to a second one, by using
va_copy(). After rewriting properly the Log_Message() function, the
segmentation fault is gone. Tested on both Linux and Windows builds.
2022-12-23 09:08:33 +01:00
Carlo Bramini
9a9d54d79e
gameflow: fix a typing error on KEYMAP_BILINEAR 2022-12-22 14:15:03 +01:00
Carlo Bramini
ac31dae01b
misc: fix path names to UNIX
This patch fixes some paths using MSDOS directory separator '\\' to UNIX separator '/'.
Tested also on Windows and it worked fine.
2022-12-22 10:17:53 +01:00
walkawayy
e7b41455c6
option_control: add customizable controller support (#674)
* option_control: add customizable controller support

Resolves #659.
2022-12-21 12:26:27 -05:00
Carlo Bramini
55aecc07aa
game: fix support for 64-bit (#676)
When running Tomb1Main compiled as a 64-bit application, I got an error.
This happens because ANIM_STRUCT has a frame_ptr item which is a pointer
and so it varies its size if it's compiled for an addressing depth
larger than 32-bit. I fixed the issue by adding a frame_ofs item, used
for indexing g_AnimFrames[], and by filling all the items of ANIM_STRUCT
by reading them one by one, in the same manner it has been done into
function Level_LoadRooms().

I tested Tomb1Main with the demo levels (see issue #667) and under
Windows, compiled as i686 (32-bit) and x64 (64-bit) and the engine
worked fine on both.
2022-12-21 09:03:04 +01:00
oziphantom
5159e9e18a
s/audio: miscellaneous fixes 2022-12-16 10:35:06 +01:00