mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 21:44:35 +02:00
fixed derps causing client/server crashes
This commit is contained in:
parent
8eaa920751
commit
ac01224769
16 changed files with 60 additions and 60 deletions
|
@ -18,7 +18,7 @@ Countdown: 1
|
|||
function onEventStarted(player, command)
|
||||
--player:SetCurrentMenuId(0);
|
||||
--player:RunEventFunction("delegateCommand", command, "eventConfirm");
|
||||
player:logout();
|
||||
player:Logout();
|
||||
end
|
||||
|
||||
function onEventUpdate(player, command, triggerName, step, arg1, arg2)
|
||||
|
@ -28,10 +28,10 @@ function onEventUpdate(player, command, triggerName, step, arg1, arg2)
|
|||
--Menu Dialog
|
||||
if (currentMenuId == 0) then
|
||||
if (arg1 == 1) then --Exit
|
||||
player:quitGame();
|
||||
player:QuitGame();
|
||||
player:EndCommand();
|
||||
elseif (arg1 == 2) then --Character Screen
|
||||
player:logout();
|
||||
player:Logout();
|
||||
player:EndCommand();
|
||||
--player:SetCurrentMenuId(1);
|
||||
--player:RunEventFunction("delegateCommand", command, "eventCountDown");
|
||||
|
@ -42,7 +42,7 @@ function onEventUpdate(player, command, triggerName, step, arg1, arg2)
|
|||
elseif (currentMenuId == 1) then
|
||||
|
||||
if (arg2 == 1) then --Logout Complete
|
||||
player:logout();
|
||||
player:Logout();
|
||||
player:EndCommand();
|
||||
elseif (arg2 == 2) then --Cancel Pressed
|
||||
player:EndCommand();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue