[Change] Small code cleanup.
This commit is contained in:
parent
58e28df6bb
commit
bb81e44374
@ -67,7 +67,7 @@
|
|||||||
#define LEPHISTO_INIT_DELAY 3000 /**< Minimum amount of time to wait with loading screen. */
|
#define LEPHISTO_INIT_DELAY 3000 /**< Minimum amount of time to wait with loading screen. */
|
||||||
|
|
||||||
static int quit = 0; /**< For primary loop. */
|
static int quit = 0; /**< For primary loop. */
|
||||||
static unsigned int time = 0; /**< Used to calculate FPS and movement, in pause.c */
|
static unsigned int time = 0; /**< Used to calculate FPS and movement. */
|
||||||
static char version[VERSION_LEN]; /**< Contains version. */
|
static char version[VERSION_LEN]; /**< Contains version. */
|
||||||
static glTexture* loading; /**< Loading screen. */
|
static glTexture* loading; /**< Loading screen. */
|
||||||
|
|
||||||
|
@ -5,8 +5,6 @@
|
|||||||
*
|
*
|
||||||
* Main trick to pausing/unpausing is to allow things based on time
|
* Main trick to pausing/unpausing is to allow things based on time
|
||||||
* to behave properly when the toolkit opens a window.
|
* to behave properly when the toolkit opens a window.
|
||||||
*
|
|
||||||
* @todo Should probably be eliminated by making everything use the dt system.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
@ -15,9 +13,6 @@
|
|||||||
int paused = 0; /**< Are we paused. */
|
int paused = 0; /**< Are we paused. */
|
||||||
double dt_mod = 1.; /**< dt modifier. */
|
double dt_mod = 1.; /**< dt modifier. */
|
||||||
|
|
||||||
/* From main.c */
|
|
||||||
extern unsigned int time; /**< From lephisto.c. */
|
|
||||||
|
|
||||||
/* Pause the game. */
|
/* Pause the game. */
|
||||||
void pause_game(void) {
|
void pause_game(void) {
|
||||||
if(paused) return; /* Well well.. We are paused already. */
|
if(paused) return; /* Well well.. We are paused already. */
|
||||||
|
Loading…
Reference in New Issue
Block a user