Make tree only Cylboard when "BETTERCAMERA" is detected

This commit is contained in:
danielh05 2020-06-25 02:38:23 +02:00 committed by GitHub
parent 2a117dd36d
commit febd557cfd
1 changed files with 7 additions and 0 deletions

View File

@ -12,6 +12,9 @@
#include "game/debug.h" #include "game/debug.h"
#include "menu/file_select.h" #include "menu/file_select.h"
#include "engine/surface_load.h" #include "engine/surface_load.h"
#ifdef BETTERCAMERA
#include "game/bettercamera.h"
#endif
#include "actors/common0.h" #include "actors/common0.h"
#include "actors/common1.h" #include "actors/common1.h"
@ -3183,7 +3186,11 @@ const BehaviorScript bhvFloorTrapInCastle[] = {
const BehaviorScript bhvTree[] = { const BehaviorScript bhvTree[] = {
BEGIN(OBJ_LIST_POLELIKE), BEGIN(OBJ_LIST_POLELIKE),
#ifdef BETTERCAMERA
CYLBOARD(), CYLBOARD(),
#else
BILLBOARD(),
#endif
OR_INT(oFlags, OBJ_FLAG_UPDATE_GFX_POS_AND_ANGLE), OR_INT(oFlags, OBJ_FLAG_UPDATE_GFX_POS_AND_ANGLE),
SET_INT(oInteractType, INTERACT_POLE), SET_INT(oInteractType, INTERACT_POLE),
SET_HITBOX(/*Radius*/ 80, /*Height*/ 500), SET_HITBOX(/*Radius*/ 80, /*Height*/ 500),