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 fccaead53d
commit c7af33814e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

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