1
0

Buttons no longer click on when already on. Buttons now play sound when clicking off.

This commit is contained in:
Hax52
2015-06-22 21:00:15 -05:00
committed by hax52
parent d83c9f194f
commit 9f1d1c058f
5 changed files with 58 additions and 10 deletions

View File

@@ -3051,7 +3051,11 @@ void cWorld::QueueTask(cTaskPtr a_Task)
}
void cWorld::ScheduleTask(int a_DelayTicks, std::function<void (cWorld&)> a_Func)
{
cTaskLambda task(a_Func);
ScheduleTask(a_DelayTicks, static_cast<cTaskPtr>(std::make_shared<cTaskLambda>(task)));
}
void cWorld::ScheduleTask(int a_DelayTicks, cTaskPtr a_Task)
@@ -3554,8 +3558,10 @@ void cWorld::cTaskSendBlockToAllPlayers::Run(cWorld & a_World)
a_World.ForEachPlayer(PlayerCallback);
}
void cWorld::cTaskLambda::Run(cWorld & a_World)
{
m_func(a_World);
}
////////////////////////////////////////////////////////////////////////////////