mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-06 21:25:42 +12:00
Fix arena joining more than possible
This commit is contained in:
parent
a5bab68b03
commit
0cf785817b
2 changed files with 4 additions and 1 deletions
|
@ -361,6 +361,9 @@ namespace HISP.Game
|
|||
}
|
||||
public void AddEntry(User user, HorseInstance horse)
|
||||
{
|
||||
if (Entries.Length + 1 > Slots)
|
||||
return;
|
||||
|
||||
if(!UserHasHorseEntered(user))
|
||||
{
|
||||
ArenaEntry arenaEntry = new ArenaEntry();
|
||||
|
|
|
@ -2837,7 +2837,7 @@ namespace HISP.Game
|
|||
}
|
||||
|
||||
message += Messages.FormatArenaCurrentlyTakingEntries(lastHours, lastMinutes, amOrPm, arena.RaceEvery - minutes);
|
||||
if (arena.Entries.Length > arena.Slots)
|
||||
if (arena.Entries.Length + 1 > arena.Slots)
|
||||
{
|
||||
message += Messages.ArenaCompetitionFull;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue