mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-11 20:11:18 +03:00
* Fix survival test build.
This commit is contained in:
@@ -1095,19 +1095,19 @@ void Tile::spawnResources(Level* pLevel, int x, int y, int z, int data, float fC
|
||||
return;
|
||||
|
||||
#ifdef TEST_SURVIVAL_MODE
|
||||
int count = getResourceCount(&pLevel->field_38);
|
||||
int count = getResourceCount(&pLevel->m_random);
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
if (pLevel->field_38.nextFloat() > fChance)
|
||||
if (pLevel->m_random.nextFloat() > fChance)
|
||||
continue;
|
||||
|
||||
int id = getResource(data, &pLevel->field_38);
|
||||
int id = getResource(data, &pLevel->m_random);
|
||||
if (id <= 0)
|
||||
continue;
|
||||
|
||||
float xo = (pLevel->field_38.nextFloat() * 0.7f) + (1.0f - 0.7f) * 0.5f;
|
||||
float yo = (pLevel->field_38.nextFloat() * 0.7f) + (1.0f - 0.7f) * 0.5f;
|
||||
float zo = (pLevel->field_38.nextFloat() * 0.7f) + (1.0f - 0.7f) * 0.5f;
|
||||
float xo = (pLevel->m_random.nextFloat() * 0.7f) + (1.0f - 0.7f) * 0.5f;
|
||||
float yo = (pLevel->m_random.nextFloat() * 0.7f) + (1.0f - 0.7f) * 0.5f;
|
||||
float zo = (pLevel->m_random.nextFloat() * 0.7f) + (1.0f - 0.7f) * 0.5f;
|
||||
|
||||
ItemInstance inst(id, 1, getSpawnResourcesAuxValue(data));
|
||||
ItemEntity* pEntity = new ItemEntity(pLevel, float(x) + xo, float(y) + yo, float(z) + zo, &inst);
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\GameMods.hpp" />
|
||||
<ClInclude Include="..\platforms\openal\SoundSystemAL.hpp" />
|
||||
<ClInclude Include="..\platforms\PlatformDefinitions.hpp" />
|
||||
<ClInclude Include="..\platforms\windows\AppPlatform_windows.hpp" />
|
||||
|
||||
@@ -94,9 +94,6 @@
|
||||
<Filter Include="source\platforms\openal">
|
||||
<UniqueIdentifier>{cc57a0f6-733d-44fa-8478-b1826b074d66}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="Header Files\Third Party">
|
||||
<UniqueIdentifier>{d754d82a-1cf9-4e4a-9dfd-2cc79f4d1fc1}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\thirdparty\raknet\ThreadsafePacketLogger.h">
|
||||
@@ -996,11 +993,8 @@
|
||||
<ClInclude Include="..\platforms\openal\SoundSystemAL.hpp">
|
||||
<Filter>source\platforms\openal</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\thirdparty\GL\glext.h">
|
||||
<Filter>Header Files\Third Party</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\compat\GL.hpp">
|
||||
<Filter>Header Files\Third Party</Filter>
|
||||
<ClInclude Include="..\GameMods.hpp">
|
||||
<Filter>source\client</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user