Skip to content

Commit

Permalink
AREImporter: fixed regression from 833056d and bugs from 31d4d4b
Browse files Browse the repository at this point in the history
iwd1 also uses IWD2ScriptName, so too much code was run, breaking
avatar removal in particular, making both iwd/how unfinishable

thanks go to merbie for bisecting
  • Loading branch information
lynxlynxlynx committed Apr 5, 2014
1 parent 1f88a2d commit c5f9086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gemrb/plugins/AREImporter/AREImporter.cpp
Expand Up @@ -1038,7 +1038,7 @@ Map* AREImporter::GetMap(const char *ResRef, bool day_or_night)
ab->SetScriptName(DefaultName);
}
//IWD2 specific hacks
if (core->HasFeature(GF_IWD2_SCRIPTNAME)) {
if (core->HasFeature(GF_3ED_RULES)) {
//This flag is used for something else in IWD2
if (Flags&AF_NAME_OVERRIDE) {
ab->BaseStats[IE_EA]=EA_EVILCUTOFF;
Expand Down

0 comments on commit c5f9086

Please sign in to comment.