summaryrefslogtreecommitdiff
path: root/src/exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exit.c')
-rw-r--r--src/exit.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/exit.c b/src/exit.c
index 3aaad42..64ed0a9 100644
--- a/src/exit.c
+++ b/src/exit.c
@@ -1,7 +1,10 @@
#include "entityimpl.h"
#include "rotrect.h"
-IMPL(update) {
+IMPL_INIT(exit) {
+ this->width = 12;
+ this->height = 12;
+ this->exit.dir = 1;
}
IMPL(draw) {
@@ -9,9 +12,3 @@ IMPL(draw) {
rotrect(this->pos[0], this->pos[1],
this->width, this->height, 0.2 * this->exit.dir);
}
-
-IMPL_INIT(exit) {
- this->width = 12;
- this->height = 12;
- this->exit.dir = 1;
-} IMPL_END