From 60261932b0e939eddd7b1a336d4069641dbe9b0a Mon Sep 17 00:00:00 2001 From: Steve Date: Fri, 9 Mar 2018 18:26:44 +0000 Subject: [PATCH] Removed static cheat. --- src/structs.h | 1 - src/world/entities.c | 7 ------- src/world/world.h | 2 +- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/structs.h b/src/structs.h index cc1b320..844d385 100644 --- a/src/structs.h +++ b/src/structs.h @@ -60,7 +60,6 @@ typedef struct { int cheatReload; int cheatBlind; int cheatNoEnemies; - int cheatStatic; int fps; } Dev; diff --git a/src/world/entities.c b/src/world/entities.c index 6783ee5..8bdc41e 100644 --- a/src/world/entities.c +++ b/src/world/entities.c @@ -97,13 +97,6 @@ void doEntities(void) for (self = world.entityHead.next ; self != NULL ; self = self->next) { - if (dev.cheatStatic && self != (Entity*)world.bob) - { - self->isVisible = 1; - world.bob->flags |= (EF_WEIGHTLESS | EF_NO_CLIP); - continue; - } - if (self->w == 0 || self->h == 0) { r = &self->sprite[0]->frames[0]->rect; diff --git a/src/world/world.h b/src/world/world.h index 9495328..2b58423 100644 --- a/src/world/world.h +++ b/src/world/world.h @@ -100,6 +100,7 @@ extern int isLiquid(int x, int y); extern int isOnScreen(Entity *e); extern int isSolid(int x, int y); extern int isWalkable(int x, int y); +extern float limit(float i, float a, float b); extern void limitTextWidth(int width); extern void loadMusic(char *filename); extern void loadWorld(char *id); @@ -116,7 +117,6 @@ extern int rrnd(int low, int high); extern void showWidgetGroup(char *group); extern void startSectionTransition(void); extern void stopMusic(void); -extern float limit(float i, float a, float b); extern App app; extern Camera camera;