UpdateEngineValues(screen_x / TILEX, screen_y / TILEY, ply[0].x, ply[0].y);
- if (frame == 7)
- {
- logic_players();
- logic_objects();
- }
-
- if (frame == 6)
- {
- logic_globals();
- }
+ logic();
for (i = 0; i < MAX_PLAYERS; i++)
if (ply[i].joy_drop &&
void play_sound(int, int, int);
void play_element_sound(int, int, int, int);
-void logic_players(void);
-void logic_objects(void);
-void logic_globals(void);
+void logic(void);
int cleanup_em_level(unsigned char *, int, char *);
void convert_em_level(unsigned char *, int);
}
}
-void logic_players(void)
+static void logic_players(void)
{
int start_check_nr;
int i;
}
}
-void logic_objects(void)
+static void logic_objects(void)
{
int x, y;
lev.draw = temp;
}
-void logic_globals(void)
+static void logic_globals(void)
{
int x;
int y;
for (x = lev.left; x < lev.right; x++)
next[x][y] = cave[x][y];
}
+
+void logic(void)
+{
+ if (frame == 7)
+ {
+ logic_players();
+ logic_objects();
+ }
+
+ if (frame == 6)
+ {
+ logic_globals();
+ }
+}