summaryrefslogtreecommitdiff
path: root/src/elements/dest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/dest.c')
-rw-r--r--src/elements/dest.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/elements/dest.c b/src/elements/dest.c
index 772065a..a315b09 100644
--- a/src/elements/dest.c
+++ b/src/elements/dest.c
@@ -52,3 +52,15 @@ int update_DEST(UPDATE_FUNC_ARGS) {
parts[i].temp = restrict_flt(parts[i].temp, MIN_TEMP, MAX_TEMP);
return 0;
}
+int graphics_DEST(GRAPHICS_FUNC_ARGS)
+{
+ if(cpart->life)
+ {
+ *pixel_mode |= PMODE_LFLARE;
+ }
+ else
+ {
+ *pixel_mode |= PMODE_SPARK;
+ }
+ return 0;
+}