refactor: unglob std::dynamic_pointer_cast
This commit is contained in:
1 parent
39a359ca56
commit
66248339e5
204 files changed
+603
-603
No files matched your search
@@ -1037,7 +1037,7 @@ void PlayerList::broadcast(std::shared_ptr<Player> except, double x, double y, d
|
||||
std::vector< std::shared_ptr<ServerPlayer> > sentTo;
|
||||
if( except != NULL )
|
||||
{
|
||||
sentTo.push_back(dynamic_pointer_cast<ServerPlayer>(except));
|
||||
sentTo.push_back(std::dynamic_pointer_cast<ServerPlayer>(except));
|
||||
}
|
||||
|
||||
for (unsigned int i = 0; i < players.size(); i++)
|
||||
@@ -1080,7 +1080,7 @@ void PlayerList::broadcast(std::shared_ptr<Player> except, double x, double y, d
|
||||
if (xd * xd + yd * yd + zd * zd < range * range)
|
||||
{
|
||||
#if 0 // _DEBUG
|
||||
std::shared_ptr<LevelSoundPacket> SoundPacket= dynamic_pointer_cast<LevelSoundPacket>(packet);
|
||||
std::shared_ptr<LevelSoundPacket> SoundPacket= std::dynamic_pointer_cast<LevelSoundPacket>(packet);
|
||||
|
||||
if(SoundPacket)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user