summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index 38a92a1..a57f2eb 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1,6 +1,8 @@
#include "entityimpl.h"
#include "lzr.h"
+int destructibles = 0, des_x, des_y;
+
IMPL(draw) {
const LZR_ImageDrawSettings stg =
{0, 0, -1, -1, 1.0, 1.0, 0.0, true, false, false};
@@ -13,8 +15,12 @@ IMPL(smash) {
LZR_PlaySound(1);
this->broken = 1;
this->smash = NULL;
+ destructibles -= 1;
+ des_x = this->pos[0];
+ des_y = this->pos[1];
}
IMPL_INIT(window) {
+ destructibles += 1;
this->width = this->height = 64;
}