mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-27 10:24:18 +00:00
Fix MxParam casts in Notify functions (#1188)
* First batch * Second batch
This commit is contained in:
@@ -33,10 +33,12 @@ BumpBouy::~BumpBouy()
|
||||
MxLong BumpBouy::Notify(MxParam& p_param)
|
||||
{
|
||||
MxLong result = 0;
|
||||
MxNotificationParam& param = (MxNotificationParam&) p_param;
|
||||
|
||||
IslePathActor* user = (IslePathActor*) UserActor();
|
||||
assert(user);
|
||||
|
||||
if (user->IsA("Jetski") && ((MxNotificationParam&) p_param).GetNotification() == c_notificationClick) {
|
||||
if (user->IsA("Jetski") && param.GetNotification() == c_notificationClick) {
|
||||
VideoManager()->SetRender3D(FALSE);
|
||||
user->SetWorldSpeed(0);
|
||||
user->Exit();
|
||||
|
||||
Reference in New Issue
Block a user