Fixed water/lava moving and waves (#659)
parent
2f0ec3fe75
commit
95f1e3f19a
|
@ -45,7 +45,6 @@ namespace Gfx
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
const int WATERLINE_PREALLOCATE_COUNT = 500;
|
const int WATERLINE_PREALLOCATE_COUNT = 500;
|
||||||
// TODO: remove the limit?
|
|
||||||
const int VAPOR_SIZE = 10;
|
const int VAPOR_SIZE = 10;
|
||||||
} // anonymous namespace
|
} // anonymous namespace
|
||||||
|
|
||||||
|
|
|
@ -3222,8 +3222,8 @@ void CRobotMain::CreateScene(bool soluce, bool fixScene, bool resetObject)
|
||||||
if (line->GetCommand() == "TerrainWater" && !resetObject)
|
if (line->GetCommand() == "TerrainWater" && !resetObject)
|
||||||
{
|
{
|
||||||
Math::Vector pos;
|
Math::Vector pos;
|
||||||
pos.x = line->GetParam("moxeX")->AsFloat(0.0f);
|
pos.x = line->GetParam("moveX")->AsFloat(0.0f);
|
||||||
pos.y = line->GetParam("moxeY")->AsFloat(0.0f);
|
pos.y = line->GetParam("moveY")->AsFloat(0.0f);
|
||||||
pos.z = pos.x;
|
pos.z = pos.x;
|
||||||
m_water->Create(line->GetParam("air")->AsWaterType(Gfx::WATER_TT),
|
m_water->Create(line->GetParam("air")->AsWaterType(Gfx::WATER_TT),
|
||||||
line->GetParam("water")->AsWaterType(Gfx::WATER_TT),
|
line->GetParam("water")->AsWaterType(Gfx::WATER_TT),
|
||||||
|
|
Loading…
Reference in New Issue