omf2097 / openomf

One Must Fall 2097 Remake
http://www.openomf.org
MIT License
362 stars 35 forks source link

Rank loss in tournament #494

Closed gdeda closed 1 year ago

gdeda commented 1 year ago

This makes the player to lose a rank position in the tournament when a match is lost. A check is added to avoid going out of the array list of ranked participants if the player loses the match while being already at the bottom of the ladder.

gdeda commented 1 year ago

NOTE: will work only in OMF tournaments, not in custom tournaments EDIT: ignore, I'm stupid with operators. Did another commit and revised the indentation (i'm not sure what clang has to argue) EDIT 2: ok, did a clang-format run

katajakasa commented 1 year ago

I'm not close to my dev pc so cannot test this now, but it seems good so I'm just going to trust you and merge it ;)

Vagabond commented 1 year ago

does seem reasonable