Browse Source

rename variable in new code

pull/3142/head
Thomas Christlieb 5 years ago committed by Anders Jenbo
parent
commit
7013ee8349
  1. 4
      Source/loadsave.cpp

4
Source/loadsave.cpp

@ -629,8 +629,8 @@ void LoadMonster(LoadHelper *file, Monster &monster)
monster.mlid = NO_LIGHT; // Correct incorect values in old saves
if ((monster._mFlags & MFLAG_BERSERK) != 0) {
int r = (currlevel < 17 || currlevel > 20) ? 3 : 9;
monster.mlid = AddLight(monster.position.tile, r);
int lightRadius = (currlevel < 17 || currlevel > 20) ? 3 : 9;
monster.mlid = AddLight(monster.position.tile, lightRadius);
}
// Omit pointer mName;

Loading…
Cancel
Save