[Change] Need to run enter and takeoff hooks on load game.
This commit is contained in:
parent
abab808387
commit
09636a6c90
@ -9,6 +9,7 @@
|
|||||||
#include "toolkit.h"
|
#include "toolkit.h"
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
#include "lfile.h"
|
#include "lfile.h"
|
||||||
|
#include "hook.h"
|
||||||
#include "save.h"
|
#include "save.h"
|
||||||
|
|
||||||
#define LOAD_WIDTH 400
|
#define LOAD_WIDTH 400
|
||||||
@ -212,6 +213,10 @@ static int load_game(char* file) {
|
|||||||
hook_load(node);
|
hook_load(node);
|
||||||
space_sysLoad(node);
|
space_sysLoad(node);
|
||||||
|
|
||||||
|
/* Need to run takeoff hooks since player just "took off". */
|
||||||
|
hooks_run("takeoff");
|
||||||
|
hooks_run("enter");
|
||||||
|
|
||||||
xmlFreeDoc(doc);
|
xmlFreeDoc(doc);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user