summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2020-04-02 00:04:56 +0300
committerFire-Head <Fire-Head@users.noreply.github.com>2020-04-02 00:04:56 +0300
commit13fb853fd832d4ba92983c968856ba04e8e13dcb (patch)
treed6bdb7be2e523ae7ece3071b739d66d2b8191f0c /src/core
parent8e3ee096e2ec54ea852c29f8eb44ec0eaa4588cd (diff)
Glass done
Diffstat (limited to 'src/core')
-rw-r--r--src/core/common.h1
-rw-r--r--src/core/config.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/core/common.h b/src/core/common.h
index 7b4ff4a0..b58b93af 100644
--- a/src/core/common.h
+++ b/src/core/common.h
@@ -215,6 +215,7 @@ void re3_assert(const char *expr, const char *filename, unsigned int lineno, con
#define ABS(a) (((a) < 0) ? (-(a)) : (a))
#define norm(value, min, max) (((value) < (min)) ? 0 : (((value) > (max)) ? 1 : (((value) - (min)) / ((max) - (min)))))
+#define lerp(norm, min, max) ( (norm) * ((max) - (min)) + (min) )
#define STRINGIFY(x) #x
#define STR(x) STRINGIFY(x)
diff --git a/src/core/config.h b/src/core/config.h
index 0d39550a..926cb863 100644
--- a/src/core/config.h
+++ b/src/core/config.h
@@ -94,6 +94,8 @@ enum Config {
NUM_GARAGES = 32,
NUM_PROJECTILES = 32,
+ NUM_GLASSPANES = 45,
+ NUM_GLASSENTITIES = 32,
NUM_WATERCANNONS = 3,
NUMPEDROUTES = 200,