Remove Win32 byte types from texture packets

This commit is contained in:
notmatthewbeshay
2026-03-10 01:17:32 +11:00
parent 6026f078ac
commit 474d8b2896
4 changed files with 19 additions and 19 deletions

View File

@@ -796,7 +796,7 @@ void PlayerConnection::handleTexture(std::shared_ptr<TexturePacket> packet)
{
// Both PlayerConnection and ClientConnection should handle this mostly the same way
if(packet->dwBytes==0)
if(packet->dataBytes==0)
{
// Request for texture
#ifndef _CONTENT_PACKAGE
@@ -821,7 +821,7 @@ void PlayerConnection::handleTexture(std::shared_ptr<TexturePacket> packet)
#ifndef _CONTENT_PACKAGE
wprintf(L"Server received custom texture %ls\n",packet->textureName.c_str());
#endif
app.AddMemoryTextureFile(packet->textureName,packet->pbData,packet->dwBytes);
app.AddMemoryTextureFile(packet->textureName,packet->pbData,packet->dataBytes);
server->connection->handleTextureReceived(packet->textureName);
}
}
@@ -1714,4 +1714,4 @@ bool PlayerConnection::isGuest()
}
return isGuest;
}
}
}