fixed potential problem with copy/paste translation info

This commit is contained in:
codeimp 2009-01-24 15:54:50 +00:00
parent 4897f2c9cc
commit fab0611501
3 changed files with 2 additions and 4 deletions

View file

@ -606,7 +606,6 @@ linedefflagstranslation
4096 = "playerpush";
5120 = "missilecross";
6144 = "passuse";
7168 = "impact,missilecross";
8192 = "monsteractivate";
16384 = "blockplayers";
32768 = "blockeverything";

View file

@ -604,7 +604,6 @@ linedefflagstranslation
4096 = "playerpush";
5120 = "missilecross";
6144 = "passuse";
7168 = "impact,missilecross";
8192 = "monsteractivate";
16384 = "blockplayers";
32768 = "blockeverything";

View file

@ -356,13 +356,13 @@ namespace CodeImp.DoomBuilder.Map
// Add fields and remove bits
bits &= ~f.Flag;
for(int i = 0; i < f.Fields.Count; i++)
flags.Add(f.Fields[i], f.FieldValues[i]);
flags[f.Fields[i]] = f.FieldValues[i];
}
else
{
// Add fields with inverted value
for(int i = 0; i < f.Fields.Count; i++)
flags.Add(f.Fields[i], !f.FieldValues[i]);
flags[f.Fields[i]] = !f.FieldValues[i];
}
}
}