This repository has been archived by the owner on Oct 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
31 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include "game/effects.h" | ||
#include "global/vars.h" | ||
|
||
#include <libtrx/game/lara/misc.h> | ||
|
||
void __cdecl Lara_Extinguish(void) | ||
{ | ||
if (!g_Lara.burn) { | ||
return; | ||
} | ||
|
||
g_Lara.burn = 0; | ||
|
||
// put out flame objects | ||
int16_t fx_num = g_NextEffectActive; | ||
while (fx_num != NO_ITEM) { | ||
FX_INFO *const fx = &g_Effects[fx_num]; | ||
const int16_t next_fx_num = fx->next_active; | ||
if (fx->object_id == O_FLAME && fx->counter < 0) { | ||
fx->counter = 0; | ||
Effect_Kill(fx_num); | ||
} | ||
fx_num = next_fx_num; | ||
} | ||
} |
Submodule libtrx
updated
5 files
+5 −0 | include/libtrx/game/console/commands/heal.h | |
+2 −0 | include/libtrx/game/game_string.def | |
+3 −0 | include/libtrx/game/lara/misc.h | |
+1 −0 | meson.build | |
+29 −0 | src/game/console/commands/heal.c |