summaryrefslogtreecommitdiffstats
path: root/src/core/Game.cpp
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2020-05-27 20:50:01 +0200
committerFire-Head <Fire-Head@users.noreply.github.com>2020-05-27 20:50:01 +0200
commit63d0bdc863f76d018fc8cf3209a9210bc71f0421 (patch)
treebdaa4489e204cbad708a03f5d2dab991c8a7f41f /src/core/Game.cpp
parentfix linux build (diff)
downloadre3-63d0bdc863f76d018fc8cf3209a9210bc71f0421.tar
re3-63d0bdc863f76d018fc8cf3209a9210bc71f0421.tar.gz
re3-63d0bdc863f76d018fc8cf3209a9210bc71f0421.tar.bz2
re3-63d0bdc863f76d018fc8cf3209a9210bc71f0421.tar.lz
re3-63d0bdc863f76d018fc8cf3209a9210bc71f0421.tar.xz
re3-63d0bdc863f76d018fc8cf3209a9210bc71f0421.tar.zst
re3-63d0bdc863f76d018fc8cf3209a9210bc71f0421.zip
Diffstat (limited to '')
-rw-r--r--src/core/Game.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/Game.cpp b/src/core/Game.cpp
index 72b09feb..9a1c00a7 100644
--- a/src/core/Game.cpp
+++ b/src/core/Game.cpp
@@ -306,7 +306,7 @@ bool CGame::Initialise(const char* datFile)
CWorld::Players[0].LoadPlayerSkin();
TestModelIndices();
LoadingScreen("Loading the Game", "Setup water", nil);
- CWaterLevel::Initialise("DATA\\WATER.DAT");
+ WaterLevelInitialise("DATA\\WATER.DAT");
TheConsole.Init();
CDraw::SetFOV(120.0f);
CDraw::ms_fLODDistance = 500.0f;
@@ -686,6 +686,13 @@ CGame::InitAfterFocusLoss()
}
bool
+CGame::CanSeeWaterFromCurrArea(void)
+{
+ return currArea == AREA_MAIN_MAP || currArea == AREA_MANSION
+ || currArea == AREA_HOTEL;
+}
+
+bool
CGame::CanSeeOutSideFromCurrArea(void)
{
return currArea == AREA_MAIN_MAP || currArea == AREA_MALL ||