Ifdefs and config

This commit is contained in:
Fazana
2021-08-15 15:15:16 +01:00
parent 280baf58ad
commit 5dc75cf792
13 changed files with 60 additions and 9 deletions

View File

@@ -758,6 +758,7 @@ static void level_cmd_get_or_set_var(void) {
sCurrentCmd = CMD_NEXT;
}
#ifdef PUPPYCAM
static void level_cmd_puppyvolume(void)
{
if ((sPuppyVolumeStack[gPuppyVolumeCount] = mem_pool_alloc(gPuppyMemoryPool,sizeof(struct sPuppyVolume))) == NULL)
@@ -791,6 +792,7 @@ static void level_cmd_puppyvolume(void)
gPuppyVolumeCount++;
sCurrentCmd = CMD_NEXT;
}
#endif
static void (*LevelScriptJumpTable[])(void) = {
/*00*/ level_cmd_load_and_execute,
@@ -854,7 +856,9 @@ static void (*LevelScriptJumpTable[])(void) = {
/*3A*/ level_cmd_3A,
/*3B*/ level_cmd_create_whirlpool,
/*3C*/ level_cmd_get_or_set_var,
#ifdef PUPPYCAM
/*3E*/ level_cmd_puppyvolume,
#endif
};
struct LevelCommand *level_script_execute(struct LevelCommand *cmd) {