summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-03-19 01:29:17 +0100
committerkdx <kikoodx@paranoici.org>2023-03-19 01:30:10 +0100
commit56d1c26ede4e9641addc6aaed90d5055fd9db9d2 (patch)
treedd2f14285ea32ac58b7a29a220d373028ff1c127
parentb859924fe681407bfdb99f5d9aa6b08d08ea9d60 (diff)
downloadhyperultra-56d1c26ede4e9641addc6aaed90d5055fd9db9d2.tar.gz
tick is global now
-rw-r--r--src/background.c2
-rw-r--r--src/spike.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/background.c b/src/background.c
index c3b7e62..03730e8 100644
--- a/src/background.c
+++ b/src/background.c
@@ -2,7 +2,7 @@
#include "cfg.h"
#include "rotrect.h"
-static long tick = 0;
+long tick = 0;
static void
draw_square(double size, double angle)
diff --git a/src/spike.c b/src/spike.c
index 4d9ce87..4fb7a47 100644
--- a/src/spike.c
+++ b/src/spike.c
@@ -1,10 +1,11 @@
#include "entityimpl.h"
+extern long tick;
+
IMPL_UPDATE() {
} IMPL_END
IMPL_DRAW() {
-
} IMPL_END
IMPL_INIT(spike) {