Removed static cheat.

This commit is contained in:
Steve 2018-03-09 18:26:44 +00:00
parent cdb0230bc7
commit 60261932b0
3 changed files with 1 additions and 9 deletions

View File

@ -60,7 +60,6 @@ typedef struct {
int cheatReload;
int cheatBlind;
int cheatNoEnemies;
int cheatStatic;
int fps;
} Dev;

View File

@ -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;

View File

@ -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;