summaryrefslogtreecommitdiffstats
path: root/src/render/WaterLevel.cpp
diff options
context:
space:
mode:
authorRoman Masanin <36927roma@gmail.com>2020-10-12 12:42:57 +0200
committerRoman Masanin <36927roma@gmail.com>2020-10-12 12:42:57 +0200
commit417646819c5d88bb7774bbb0341d92ada3293196 (patch)
tree4da51aa3be7f75002b16985207d9411d900dde7d /src/render/WaterLevel.cpp
parentmark file and fix screen offset (diff)
parentMerge pull request #753 from majesticCoding/miami (diff)
downloadre3-417646819c5d88bb7774bbb0341d92ada3293196.tar
re3-417646819c5d88bb7774bbb0341d92ada3293196.tar.gz
re3-417646819c5d88bb7774bbb0341d92ada3293196.tar.bz2
re3-417646819c5d88bb7774bbb0341d92ada3293196.tar.lz
re3-417646819c5d88bb7774bbb0341d92ada3293196.tar.xz
re3-417646819c5d88bb7774bbb0341d92ada3293196.tar.zst
re3-417646819c5d88bb7774bbb0341d92ada3293196.zip
Diffstat (limited to 'src/render/WaterLevel.cpp')
-rw-r--r--src/render/WaterLevel.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/render/WaterLevel.cpp b/src/render/WaterLevel.cpp
index efcb6c14..ec9485d2 100644
--- a/src/render/WaterLevel.cpp
+++ b/src/render/WaterLevel.cpp
@@ -27,6 +27,7 @@
#include "Replay.h"
#include "WaterLevel.h"
#include "SurfaceTable.h"
+#include "WaterCreatures.h"
#define RwIm3DVertexSet_RGBA(vert, rgba) RwIm3DVertexSetRGBA(vert, rgba.red, rgba.green, rgba.blue, rgba.alpha) // (RwRGBAAssign(&(_dst)->color, &_src))
@@ -2821,8 +2822,7 @@ CWaterLevel::HandleSeaLifeForms()
}
else if ( (CTimer::GetTimeInMilliseconds() - timecounter) > 5000 )
{
-//TODO(MIAMI)
-// if ( CWaterCreatures::IsSpaceForMoreWaterCreatures() )
+ if ( CWaterCreatures::IsSpaceForMoreWaterCreatures() )
{
for ( int32 i = 0; i < 3; i++ )
{
@@ -2838,14 +2838,12 @@ CWaterLevel::HandleSeaLifeForms()
vecPos.x += (fCos - fSin) * fAngle;
vecPos.y += (fSin + fCos) * fAngle;
- //TODO(MIAMI)
- //CWaterCreatures::CreateOne(vecPos, 0xFFFFFFFF);
+ CWaterCreatures::CreateOne(vecPos, -1);
}
}
}
- //TODO(MIAMI)
- //CWaterCreatures::UpdateAll();
+ CWaterCreatures::UpdateAll();
}
void