From c0c336500955a23e344651e5412c9d9d441ef4ee Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 28 Jun 2023 22:22:32 +0100 Subject: first pass of T2DLL --- src/T2DLL/T2PaletteAnime.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/T2DLL/T2PaletteAnime.h') diff --git a/src/T2DLL/T2PaletteAnime.h b/src/T2DLL/T2PaletteAnime.h index fd6ef53..778834d 100644 --- a/src/T2DLL/T2PaletteAnime.h +++ b/src/T2DLL/T2PaletteAnime.h @@ -1,7 +1,7 @@ #pragma once #include "common.h" -class DLL_EXPORT T2PaletteAnime { +class AFX_EXT_CLASS T2PaletteAnime { public: T2PaletteAnime(T2WorldDef*, T2DateTime*); virtual ~T2PaletteAnime(); @@ -28,7 +28,10 @@ public: mSECount = 0; } BOOL IsFine() const { - return (mSkyState == 3) || (mSkyState == 4); + BOOL result = true; + if (mSkyState == 3 || mSkyState == 4) + result = false; + return result; } BOOL IsSnow() const { return (mSkyState == 4); } BOOL IsShininDay() const { -- cgit v1.2.3