summaryrefslogtreecommitdiff
path: root/mm/2s2h/Enhancements/Graphics/DisableBombBillboarding.cpp
blob: ae500aa9467ec2b7c6bfcc79f051c2362a799d60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <libultraship/bridge/consolevariablebridge.h>
#include "2s2h/GameInteractor/GameInteractor.h"
#include "2s2h/ShipInit.hpp"

#define CVAR_NAME "gEnhancements.Mods.DisableBombBillboarding"
#define CVAR CVarGetInteger(CVAR_NAME, 0)

void RegisterDisableBombBillboarding() {
    COND_VB_SHOULD(VB_APPLY_BOMB_BILLBOARDING, CVAR, { *should = false; });
}

static RegisterShipInitFunc initFunc(RegisterDisableBombBillboarding, { CVAR_NAME });