Maintenance: Restore original C3dGround/C3dGround15 hierarchy as GroundBase/GroundGeometry with 20 virtual slots, base size0x64 and d

Batch #14713 by ragnarok-clanker: forced by an admin (7 lower score(s), 49 changed function(s)); checked with 27 compiled unit(s), including every includer of Source/Contents/Ground/GroundGeometry.h, Source/Contents/Ground/GroundWaterState.h, Source/Contents/World/WorldGroundImport.h.
This commit is contained in:
ragnarok-clanker 2026-11-07 16:19:02 +00:00
commit b678131329
23 changed files with 286 additions and 206 deletions

View file

@ -206,8 +206,9 @@ void CWorld::InitWorld() {
this->ground = new GroundGeometry();
this->ground->Build(*groundRes, g_worldLightDirection, g_worldDiffuse, g_worldAmbient);
this->ground->terrain = this->terrain;
this->ground->water.Set(
this->ground->SetWater(
worldRes->waterLevel,
worldRes->waterType,
worldRes->waterAnimation,
@ -216,7 +217,7 @@ void CWorld::InitWorld() {
worldRes->waveHeight
);
this->ground->water.Import(*groundRes);
this->ground->ImportWater(*groundRes);
ResourceMgr::Instance().Remove(groundRes);
@ -270,7 +271,7 @@ void CWorld::InitWorld() {
this->InitializeSpatial();
this->LoadMapEffects();
this->ground->InitializeLighting(*this->terrain);
this->ground->InitializeLighting();
this->published = static_cast<int>(this->models.size());