Fixed minor style issues.
This commit is contained in:
parent
262e6d06aa
commit
cf73fee7e3
@ -363,7 +363,7 @@ protected:
|
||||
}
|
||||
|
||||
/** Variadic template recursor: More params to push. Push them and recurse. */
|
||||
template<typename T, typename... Args>
|
||||
template <typename T, typename... Args>
|
||||
inline bool PushCallPop(T a_Param, Args &&... args)
|
||||
{
|
||||
Push(a_Param);
|
||||
|
@ -343,7 +343,7 @@ private:
|
||||
cCriticalSection m_CSChunkLists;
|
||||
cChunkCoordsList m_LoadedChunks; // Chunks that the player belongs to
|
||||
cChunkCoordsList m_ChunksToSend; // Chunks that need to be sent to the player (queued because they weren't generated yet or there's not enough time to send them)
|
||||
cChunkCoordsList m_SentChunks; // Store the coordinates of the chunks that the client has loaded
|
||||
cChunkCoordsList m_SentChunks; // Chunks that are currently sent to the client
|
||||
|
||||
cProtocol * m_Protocol;
|
||||
|
||||
|
@ -642,7 +642,7 @@ void cItemGrid::GenerateRandomLootWithBooks(const cLootProbab * a_LootProbabs, s
|
||||
// Choose the enchantments
|
||||
cWeightedEnchantments Enchantments;
|
||||
cEnchantments::AddItemEnchantmentWeights(Enchantments, E_ITEM_BOOK, 24 + Noise.IntNoise2DInt(a_Seed, TotalProbab) % 7);
|
||||
int NumEnchantments = Noise.IntNoise3DInt(TotalProbab, Rnd, a_Seed) % 5; // The number of enchantments this book wil get.
|
||||
int NumEnchantments = Noise.IntNoise3DInt(TotalProbab, Rnd, a_Seed) % 5; // The number of enchantments this book wil get.
|
||||
|
||||
for (int j = 0; j <= NumEnchantments; j++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user