mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 21:54:58 +00:00
Refactoring and Bugfixes (#127)
* Replacing nil + compact! with delete, delete_at and delete_if wherever possible * Fixed Terrain Tag editor not setting the correct terrain * Fixed Text Cursor in Animation Editor not going right
This commit is contained in:
@@ -205,8 +205,7 @@ def pbGenerateChallenge(rule, tag)
|
||||
elsif teams[i].length < 2
|
||||
teams[i] = RuledTeam.new(party, rule)
|
||||
elsif i >= maxteams
|
||||
teams[i] = nil
|
||||
teams.compact!
|
||||
teams.delete_at(i)
|
||||
elsif teams[i].totalGames >= 250
|
||||
# retire
|
||||
for j in 0...teams[i].length
|
||||
|
||||
Reference in New Issue
Block a user