HomeWildfire Games

Remove +1 in getPlayerTeam and areAllies of rmgen/ and -1 in the calls to that…

Description

Remove +1 in getPlayerTeam and areAllies of rmgen/ and -1 in the calls to that following rP16100.

Event Timeline

leper added inline comments.
/ps/trunk/binaries/data/mods/public/maps/random/rmgen/library.js
388

Useless ().

elexis added inline comments.Nov 25 2017, 12:02 PM
/ps/trunk/binaries/data/mods/public/maps/random/rmgen/library.js
388

Necessary parentheses.
If its removed it always returns undefined due to the https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#Automatic_semicolon_insertion

mimo added a subscriber: mimo.Nov 25 2017, 12:15 PM
mimo added inline comments.
/ps/trunk/binaries/data/mods/public/maps/random/rmgen/library.js
388

not if 383 and 384 would be merged :) (which would look nicer to me)

elexis added inline comments.Nov 25 2017, 12:57 PM
/ps/trunk/binaries/data/mods/public/maps/random/rmgen/library.js
388

The intention was to reduce the length of the lines, but actually those are only 3 more spaces, so actually agree.
I will consider if the Team property can become mandatory too, then I could remove the parentheses in the same hunk.