summaryrefslogtreecommitdiff
path: root/mm/2s2h/Enhancements/Player/InstantPutaway.cpp
blob: 7ae4461ae74efd6193bfa02e2695284a9f45a028 (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.Player.InstantPutaway"
#define CVAR CVarGetInteger(CVAR_NAME, 0)

void RegisterInstantPutaway() {
    COND_VB_SHOULD(VB_RESET_PUTAWAY_TIMER, CVAR, { *should = false; });
}

static RegisterShipInitFunc initFunc(RegisterInstantPutaway, { CVAR_NAME });