dynamic_pointer_cast -> std::dynamic_pointer_cast
This commit is contained in:
@@ -277,7 +277,7 @@ void LocalPlayer::aiStep()
|
||||
float sprintForward = input->sprintForward;
|
||||
|
||||
bool wasRunning = sprintForward >= runTreshold;
|
||||
//input->tick( dynamic_pointer_cast<Player>( shared_from_this() ) );
|
||||
//input->tick( std::dynamic_pointer_cast<Player>( shared_from_this() ) );
|
||||
// 4J-PB - make it a localplayer
|
||||
input->tick( this );
|
||||
sprintForward = input->sprintForward;
|
||||
@@ -622,7 +622,7 @@ bool LocalPlayer::openContainer(std::shared_ptr<Container> container)
|
||||
|
||||
bool LocalPlayer::startCrafting(int x, int y, int z)
|
||||
{
|
||||
bool success = app.LoadCrafting3x3Menu(GetXboxPad(), dynamic_pointer_cast<LocalPlayer>( shared_from_this() ), x, y, z );
|
||||
bool success = app.LoadCrafting3x3Menu(GetXboxPad(), std::dynamic_pointer_cast<LocalPlayer>( shared_from_this() ), x, y, z );
|
||||
if( success ) ui.PlayUISFX(eSFX_Press);
|
||||
//app.LoadXuiCraftMenu(0,inventory, level, x, y, z);
|
||||
//minecraft->setScreen(new CraftingScreen(inventory, level, x, y, z));
|
||||
@@ -766,7 +766,7 @@ void LocalPlayer::awardStat(Stat *stat, byteArray param)
|
||||
&& ProfileManager.IsFullVersion()
|
||||
)
|
||||
{
|
||||
stat->handleParamBlob(dynamic_pointer_cast<LocalPlayer>(shared_from_this()), param);
|
||||
stat->handleParamBlob(std::dynamic_pointer_cast<LocalPlayer>(shared_from_this()), param);
|
||||
}
|
||||
delete [] param.data;
|
||||
#else
|
||||
@@ -1430,7 +1430,7 @@ bool LocalPlayer::handleMouseClick(int button)
|
||||
if(lastClickState == lastClick_oldRepeat) return false;
|
||||
|
||||
|
||||
std::shared_ptr<MultiplayerLocalPlayer> mplp = dynamic_pointer_cast<MultiplayerLocalPlayer>( shared_from_this() );
|
||||
std::shared_ptr<MultiplayerLocalPlayer> mplp = std::dynamic_pointer_cast<MultiplayerLocalPlayer>( shared_from_this() );
|
||||
|
||||
if(mplp && mplp->connection) mplp->StopSleeping();
|
||||
|
||||
@@ -1550,15 +1550,15 @@ void LocalPlayer::updateRichPresence()
|
||||
{
|
||||
app.SetRichPresenceContext(m_iPad,CONTEXT_GAME_STATE_MAP);
|
||||
}
|
||||
else if(riding != NULL && dynamic_pointer_cast<Minecart>(riding) != NULL)
|
||||
else if(riding != NULL && std::dynamic_pointer_cast<Minecart>(riding) != NULL)
|
||||
{
|
||||
app.SetRichPresenceContext(m_iPad,CONTEXT_GAME_STATE_RIDING_MINECART);
|
||||
}
|
||||
else if(riding != NULL && dynamic_pointer_cast<Boat>(riding) != NULL)
|
||||
else if(riding != NULL && std::dynamic_pointer_cast<Boat>(riding) != NULL)
|
||||
{
|
||||
app.SetRichPresenceContext(m_iPad,CONTEXT_GAME_STATE_BOATING);
|
||||
}
|
||||
else if(riding != NULL && dynamic_pointer_cast<Pig>(riding) != NULL)
|
||||
else if(riding != NULL && std::dynamic_pointer_cast<Pig>(riding) != NULL)
|
||||
{
|
||||
app.SetRichPresenceContext(m_iPad,CONTEXT_GAME_STATE_RIDING_PIG);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user