Fix some warnings
This commit is contained in:
@@ -146,9 +146,9 @@ namespace Nz
|
||||
|
||||
if (resizeBillboard)
|
||||
{
|
||||
if (const MaterialRef& material = GetMaterial())
|
||||
if (const MaterialRef& newMat = GetMaterial())
|
||||
{
|
||||
const TextureRef& diffuseMap = material->GetDiffuseMap();
|
||||
const TextureRef& diffuseMap = newMat->GetDiffuseMap();
|
||||
if (diffuseMap && diffuseMap->IsValid())
|
||||
SetSize(Vector2f(Vector2ui(diffuseMap->GetSize())));
|
||||
}
|
||||
|
||||
@@ -200,9 +200,9 @@ namespace Nz
|
||||
|
||||
if (resizeSprite)
|
||||
{
|
||||
if (const MaterialRef& material = GetMaterial())
|
||||
if (const MaterialRef& newMat = GetMaterial())
|
||||
{
|
||||
const TextureRef& diffuseMap = material->GetDiffuseMap();
|
||||
const TextureRef& diffuseMap = newMat->GetDiffuseMap();
|
||||
if (diffuseMap && diffuseMap->IsValid())
|
||||
SetSize(Vector2f(Vector2ui(diffuseMap->GetSize())));
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace Nz
|
||||
inline bool Create(NetProtocol protocol, UInt16 port, std::size_t peerCount, std::size_t channelCount = 0);
|
||||
bool Create(const IpAddress& listenAddress, std::size_t peerCount, std::size_t channelCount = 0);
|
||||
bool Create(const IpAddress& listenAddress, std::size_t peerCount, std::size_t channelCount, UInt32 incomingBandwidth, UInt32 outgoingBandwidth);
|
||||
void Destroy();
|
||||
inline void Destroy();
|
||||
|
||||
void Flush();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user