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

void RegisterPreventDiveOverWater() {
    COND_VB_SHOULD(VB_LINK_DIVE_OVER_WATER, CVAR, { *should = false; });
}

static RegisterShipInitFunc initFunc(RegisterPreventDiveOverWater, { CVAR_NAME });