mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-07 21:55:42 +12:00
Fix Bug where quiz menu wouldnt close.
This commit is contained in:
parent
7a85eaac5d
commit
160688bf2d
1 changed files with 34 additions and 38 deletions
|
@ -209,16 +209,13 @@ namespace HISP.Game.Events
|
|||
{
|
||||
foreach(Participent participent in Participents)
|
||||
{
|
||||
if (participent.UserInstance.LoggedinClient != null)
|
||||
{
|
||||
if (GameServer.IsUserOnline(participent.UserInstance.Id))
|
||||
{
|
||||
|
||||
if (participent.Quit)
|
||||
continue;
|
||||
|
||||
GameServer.UpdateArea(participent.UserInstance.LoggedinClient);
|
||||
|
||||
participent.UserInstance.InRealTimeQuiz = false;
|
||||
GameServer.UpdateArea(participent.UserInstance.LoggedinClient);
|
||||
|
||||
int money = 0;
|
||||
|
||||
|
@ -246,8 +243,7 @@ namespace HISP.Game.Events
|
|||
}
|
||||
|
||||
participent.UserInstance.Money += money;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
participents.Clear();
|
||||
|
@ -255,7 +251,7 @@ namespace HISP.Game.Events
|
|||
quizTimer.Dispose();
|
||||
|
||||
Active = false;
|
||||
GameServer.TackShopGiveawayEvent = null;
|
||||
GameServer.QuizEvent = null;
|
||||
}
|
||||
|
||||
private void quizTimesUp(object state)
|
||||
|
|
Loading…
Add table
Reference in a new issue