mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-10 07:05:41 +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)
|
foreach(Participent participent in Participents)
|
||||||
{
|
{
|
||||||
if (participent.UserInstance.LoggedinClient != null)
|
|
||||||
{
|
|
||||||
if (GameServer.IsUserOnline(participent.UserInstance.Id))
|
|
||||||
{
|
|
||||||
if (participent.Quit)
|
if (participent.Quit)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
GameServer.UpdateArea(participent.UserInstance.LoggedinClient);
|
|
||||||
|
|
||||||
participent.UserInstance.InRealTimeQuiz = false;
|
participent.UserInstance.InRealTimeQuiz = false;
|
||||||
|
GameServer.UpdateArea(participent.UserInstance.LoggedinClient);
|
||||||
|
|
||||||
int money = 0;
|
int money = 0;
|
||||||
|
|
||||||
|
@ -246,8 +243,7 @@ namespace HISP.Game.Events
|
||||||
}
|
}
|
||||||
|
|
||||||
participent.UserInstance.Money += money;
|
participent.UserInstance.Money += money;
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
participents.Clear();
|
participents.Clear();
|
||||||
|
@ -255,7 +251,7 @@ namespace HISP.Game.Events
|
||||||
quizTimer.Dispose();
|
quizTimer.Dispose();
|
||||||
|
|
||||||
Active = false;
|
Active = false;
|
||||||
GameServer.TackShopGiveawayEvent = null;
|
GameServer.QuizEvent = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void quizTimesUp(object state)
|
private void quizTimesUp(object state)
|
||||||
|
|
Loading…
Add table
Reference in a new issue