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:
// Does not gain promotions.
promotion.rank = "0"
nextSuffix = ""
break;
}
// 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.)
actorStr = this.actor.toString();
/*actorStr = this.actor.toString();
if (promotion.rank > "1"
&& 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";*/
}
// ====================================================================