summaryrefslogtreecommitdiff
path: root/src/alarm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alarm.c')
-rw-r--r--src/alarm.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/alarm.c b/src/alarm.c
index 95fb6b0..35b91b0 100644
--- a/src/alarm.c
+++ b/src/alarm.c
@@ -2,6 +2,17 @@
#include "lzr.h"
#include "entityimpl.h"
+extern int destructibles, des_x, des_y;
+
+IMPL(update) {
+ this->pos[0] = -100;
+ this->pos[1] = -100;
+ if (destructibles == 0) {
+ this->pos[0] = des_x;
+ this->pos[1] = des_y;
+ }
+}
+
IMPL(draw) {
const LZR_ImageDrawSettings stg =
{0, 0, -1, -1, 1.0, 1.0, 0.0, true, false, false};