Added new isLocalPlayerKart() function to controller, which is used
to detect when sfx and graphical effects should be shown. The isPlayerKart funtion is used to detect a (local or remote) player, e.g. for rubber-banding the AI, or finding the Xth player kart.
This commit is contained in:
@@ -131,7 +131,7 @@ void addAttachment(Attachment::AttachmentType type)
|
||||
for (unsigned int i = 0; i < world->getNumKarts(); i++)
|
||||
{
|
||||
AbstractKart *kart = world->getKart(i);
|
||||
if (!kart->getController()->isPlayerController())
|
||||
if (!kart->getController()->isLocalPlayerController())
|
||||
continue;
|
||||
if (type == Attachment::ATTACH_ANVIL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user