More misc. updates.

This commit is contained in:
Steve 2018-02-15 22:56:34 +00:00
parent 0d87786af4
commit e5976f04dd
5 changed files with 7 additions and 3 deletions

View File

@ -76,6 +76,7 @@ Entity *initBob(void)
b->health = b->healthMax = game.hearts;
b->power = b->powerMax = game.cells;
b->oxygen = MAX_OXYGEN;
b->weaponType = WPN_PISTOL;
b->reload = 0;

View File

@ -29,7 +29,7 @@ void initAtlasTest(void)
dev.cheatPower = 1;
dev.cheatHealth = 1;
initGame();
loadGame();
initHub();
@ -43,5 +43,5 @@ void initAtlasTest(void)
saveConfig();
/*awardTrophy("BEACH");*/
saveGame();
}

View File

@ -23,10 +23,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
extern void initWorld(void);
extern void initMap(void);
extern void initHub(void);
extern void initGame(void);
extern void initEntities(void);
extern void loadWorld(char *id);
extern void saveConfig(void);
extern void loadGame(void);
extern void saveGame(void);
extern void awardTrophy(char *id);
extern Dev dev;

View File

@ -59,6 +59,7 @@ static void doDebugControls(void)
if (app.keyboard[SDL_SCANCODE_0])
{
saveGame();
saveWorld();
app.keyboard[SDL_SCANCODE_0] = 0;
}

View File

@ -20,6 +20,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "../common.h"
extern void saveGame(void);
extern void saveWorld(void);
extern App app;