Commit graph

2203 commits

Author SHA1 Message Date
rr-
589c7cb554 people: fix ShotLara signature 2022-03-17 22:44:21 +01:00
rr-
b8155a1ebd objects/trapdoor: improve naming 2022-03-17 22:44:21 +01:00
rr-
69a518d9b0 objects/switch: improve names 2022-03-17 22:44:21 +01:00
rr-
ee8aec0ec3 style: rename object functions to adhere to conventions 2022-03-17 22:44:21 +01:00
walkawayy
a50d3b75d4
stats: stop all music after final statistics are displayed (#493)
Resolves #490.
2022-03-17 16:26:14 -04:00
rr-
64044a9bc3 output: fix ghost margins during fades
Resolves #438
2022-03-17 09:33:15 +01:00
rr-
c41bea935d style: make parameterless functions void
As ChocolateFan once explained on Discord, in C functions declared as
parameterless in fact are free to take arbitrary number of arguments.
To tell the compiler that the function is not allowed to take any
arguments, we use "func(void)" idiom.
2022-03-17 09:30:28 +01:00
walkawayy
cb4ad509aa
inventry: add the option to pause sound in the inventory (#487)
Resolves #309.
2022-03-16 20:28:38 -04:00
walkawayy
eb7e87f3be
option/graphics: fix not using gameflow strings (#485)
Resolves #484
2022-03-15 08:53:28 +01:00
walkawayy
e8006d4952
gameflow: add fade effects to images (#478)
Resolves #478.
2022-03-14 17:40:00 -04:00
rr-
838d871698 text: fix broken 8 glyph
Resolves #480. Regression from f14ec7e0.
2022-03-13 23:48:25 +01:00
rr-
560fccbe4e option/graphics: fix broken perspective dialog
Resolves #482
2022-03-13 23:48:14 +01:00
walkawayy
8038db6922
option_sound: fix rapid sound effect if input held down (#477)
Resolves #467.
2022-03-11 11:17:41 -05:00
walkawayy
45f0044a15
gameflow: add support for unobtainable pickups and kills (#471)
Resolves #470.
2022-03-10 17:58:47 -05:00
walkawayy
79ddcbc1ad
option_graphics: offset title bar to match other menus (#473) 2022-03-10 16:47:41 -05:00
walkawayy
bcb2e6ebca
stats: add a total statistics screen after the credits. (#469)
Resolves #385.
2022-03-10 13:41:26 -05:00
walkawayy
f590666142
option_graphics: add contextual arrows, split into columns (#464)
Resolves #462.
2022-03-07 11:18:39 -05:00
walkawayy
e7587a0f78
option_control: add contextual arrows (#463)
Resolves #461.
2022-03-06 14:43:50 -05:00
walkawayy
1ccf4b8f5f
option_sound: add contextual arrows (#460)
Resolves #459.
2022-03-06 13:06:41 -05:00
rr-
e3f4a4cd43 memory: add documentation 2022-03-06 18:00:47 +01:00
rr-
9dc94911df text: remove gcc warning
gcc would complain with:

In function ‘Text_ChangeText’,
    inlined from ‘Text_ChangeText’ at ../src/game/text.c:114:6,
    inlined from ‘Text_Create’ at ../src/game/text.c:107:5:
../src/game/text.c:124:5: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
  124 |     strncpy(textstring->string, string, length);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/game/text.c: In function ‘Text_Create’:
../src/game/text.c:122:21: note: length computed here
  122 |     size_t length = strlen(string) + 1;
      |                     ^~~~~~~~~~~~~~
In function ‘Text_ChangeText’,
    inlined from ‘Text_ChangeText’ at ../src/game/text.c:114:6:
../src/game/text.c:124:5: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
  124 |     strncpy(textstring->string, string, length);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/game/text.c: In function ‘Text_ChangeText’:
../src/game/text.c:122:21: note: length computed here
  122 |     size_t length = strlen(string) + 1;
      |                     ^~~~~~~~~~~~~~
2022-03-06 18:00:47 +01:00
rr-
fa1593f01a memory: assert non-null pointer
In 99% of the cases the function is supposed to be used like this:

    Memory_FreePointer(&var);

to be able to assign NULL to var, so rather than doing a no-op in case
the function receives null, I chose to make an assertion.
2022-03-06 18:00:47 +01:00
rr-
a710debfca memory: rename Memory_Dup to Memory_DupStr 2022-03-06 18:00:47 +01:00
rr-
eea1e3e0be s/output: use memmove over memcpy 2022-03-06 18:00:47 +01:00
walkawayy
4bcc72c6e7
option_passport: add contextual arrows and clean up (#458)
Resolves #420.
2022-03-06 11:04:01 -05:00
walkawayy
f14ec7e036
text: add left/right arrow support and new text functions (#456) 2022-03-05 14:42:02 -05:00
walkawayy
a058f4ebd1
pod: fix pods unhatching on reload if user saves during explosion (#455)
Resolves #423
2022-03-04 09:10:17 +01:00
Marcin Kurczewski
a2e64df1bc
stats: let users revert back to basic stats (#453) 2022-03-03 00:06:54 +01:00
walkawayy
0e2e6d299f
switch: add option to walk to switches when nearby (#452)
Resolves #222
2022-03-02 18:02:50 +01:00
walkawayy
3d0759776d
pickup: add ability to walk to pickups when nearby (#451)
Resolves #18
2022-03-02 16:10:35 +01:00
rr-
d3cb6e3932 save: fix memory leaks 2022-02-20 09:54:02 +01:00
rr-
5fd468aa4f save: fix saving not updating sg info
Resolves #442
2022-02-20 09:54:02 +01:00
rr-
1cf555e433
save/bson: allow land and water animal exchanges
Resolves #441
2022-02-18 18:54:20 +01:00
rr-
c100ef04ce
demo: fix equipping weapons on start
Resolves #440
2022-02-17 13:07:49 +01:00
rr-
82e7368e40
setup: fix equipping weapons on start
Fixes #439
2022-02-16 23:10:51 +01:00
rr-
58efbc8e03 stats: fix items order 2022-02-16 20:50:45 +01:00
rr-
c1c5e4a8fd stats: improve death counter 2022-02-16 20:50:45 +01:00
rr-
d812931be9 stats: add death counter
Resolves #388
2022-02-16 20:50:45 +01:00
rr-
59d1ba109d lara: rename death_count to death_timer 2022-02-16 20:50:45 +01:00
rr-
cad1611865 lara: rename dive_count to dive_timer 2022-02-16 20:50:45 +01:00
rr-
8bce3c5884 json: fix potential memory leak
Modifying a JSON allocated by the parser, something that we do not do
yet, would cause memory leaks for arrays and objects.
2022-02-16 20:50:45 +01:00
rr-
a2a1161d28 json: fix heap corruption 2022-02-16 20:50:45 +01:00
rr-
0ce19d1eec
setup: fix Lara equipping guns too early
Resolves #427
2022-02-16 10:38:33 +01:00
rr-
810c37891e
savegame/legacy: do not rely on flags layout 2022-02-16 10:38:33 +01:00
rr-
b7e4cb9de7
savegame/legacy: fix reading legacy weapons
Legacy saves store the weapon progress only in the "current position"
virtual level, not in the actual current level. We need to assign the
START_INFO before InitialiseLaraInventory.
2022-02-16 10:38:32 +01:00
walkawayy
62e2ac69b3
inv: let player restart level when Lara dies
Resolves #48
2022-02-10 00:17:35 +01:00
walkawayy
2dac28fb6c
traps/dart: fix broken ricochet effect
Resolves #429
2022-02-10 00:16:49 +01:00
rr-
3cbf507b58
gameflow: fix Lara losing her pistols forever
Resolves #424
2022-02-10 00:03:00 +01:00
rr-
fbe44b3b52
option/compass: change text order
Resolves #415
2022-02-09 21:43:37 +01:00
rr-
780a9b0180
savegame: improve function names 2022-02-09 12:02:21 +01:00