Removed static cheat.
This commit is contained in:
parent
cdb0230bc7
commit
60261932b0
|
@ -60,7 +60,6 @@ typedef struct {
|
||||||
int cheatReload;
|
int cheatReload;
|
||||||
int cheatBlind;
|
int cheatBlind;
|
||||||
int cheatNoEnemies;
|
int cheatNoEnemies;
|
||||||
int cheatStatic;
|
|
||||||
int fps;
|
int fps;
|
||||||
} Dev;
|
} Dev;
|
||||||
|
|
||||||
|
|
|
@ -97,13 +97,6 @@ void doEntities(void)
|
||||||
|
|
||||||
for (self = world.entityHead.next ; self != NULL ; self = self->next)
|
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)
|
if (self->w == 0 || self->h == 0)
|
||||||
{
|
{
|
||||||
r = &self->sprite[0]->frames[0]->rect;
|
r = &self->sprite[0]->frames[0]->rect;
|
||||||
|
|
|
@ -100,6 +100,7 @@ extern int isLiquid(int x, int y);
|
||||||
extern int isOnScreen(Entity *e);
|
extern int isOnScreen(Entity *e);
|
||||||
extern int isSolid(int x, int y);
|
extern int isSolid(int x, int y);
|
||||||
extern int isWalkable(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 limitTextWidth(int width);
|
||||||
extern void loadMusic(char *filename);
|
extern void loadMusic(char *filename);
|
||||||
extern void loadWorld(char *id);
|
extern void loadWorld(char *id);
|
||||||
|
@ -116,7 +117,6 @@ extern int rrnd(int low, int high);
|
||||||
extern void showWidgetGroup(char *group);
|
extern void showWidgetGroup(char *group);
|
||||||
extern void startSectionTransition(void);
|
extern void startSectionTransition(void);
|
||||||
extern void stopMusic(void);
|
extern void stopMusic(void);
|
||||||
extern float limit(float i, float a, float b);
|
|
||||||
|
|
||||||
extern App app;
|
extern App app;
|
||||||
extern Camera camera;
|
extern Camera camera;
|
||||||
|
|
Loading…
Reference in New Issue