1
0
forked from 0ad/0ad

Fixed an upgrade bug.

This was SVN commit r4743.
This commit is contained in:
Matei 2007-01-06 05:10:48 +00:00
parent d34ef783bf
commit 3c8dd6869c

View File

@ -458,16 +458,15 @@ function setupRank()
default: default:
// Does not gain promotions. // Does not gain promotions.
promotion.rank = "0" promotion.rank = "0"
nextSuffix = ""
break; break;
} }
// If entity is an additional rank and the correct actor has not been specified // If entity is an additional rank and the correct actor has not been specified
// (it's just inherited the Basic), point it to the correct suffix. (Saves us specifying it each time.) // (it's just inherited the Basic), point it to the correct suffix. (Saves us specifying it each time.)
actorStr = this.actor.toString(); /*actorStr = this.actor.toString();
if (promotion.rank > "1" if (promotion.rank > "1"
&& actorStr.substring (actorStr.length-5, actorStr.length) != nextSuffix + ".xml") && actorStr.substring (actorStr.length-5, actorStr.length) != nextSuffix + ".xml")
this.actor = actorStr.substring (1,actorStr.length-5) + nextSuffix + ".xml"; this.actor = actorStr.substring (1,actorStr.length-5) + nextSuffix + ".xml";*/
} }
// ==================================================================== // ====================================================================