-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
console/cmd: make /heal extinguish Lara
- Loading branch information
Showing
5 changed files
with
23 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include "game/effects.h" | ||
|
||
#include <libtrx/game/lara/misc.h> | ||
|
||
void Lara_Extinguish(void) | ||
{ | ||
// put out flame objects | ||
int16_t fx_num = g_NextFxActive; | ||
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 |