Jelajahi Sumber

Обновить 'source/units/unit.cpp'

Arkady Bokov 6 tahun lalu
induk
melakukan
5f64d8b76b
1 mengubah file dengan 0 tambahan dan 2 penghapusan
  1. 0 2
      source/units/unit.cpp

+ 0 - 2
source/units/unit.cpp

@@ -59,7 +59,6 @@ void Unit::loadUnitBaseClass(QString unit_folder) {
 
 void Unit::loadUnitTraits(QString unit_folder) {
     QSettings traits(unit_folder + "traits.ini", QSettings::IniFormat);
-    //traits.beginGroup("CharactersTraits");
     level_ = traits.value("lvl", -1).toInt();
     cost_ = traits.value("cost", -1).toInt();
     starting_activity_points_ = traits.value("starting_ap", -1).toInt();
@@ -68,7 +67,6 @@ void Unit::loadUnitTraits(QString unit_folder) {
     initiative_ = traits.value("initiative", -1).toInt();
     magic_defence_ = traits.value("magic_def", -1).toInt();
     physic_defence_ = traits.value("physic_def", -1).toInt();
-    //traits.endGroup();
     qDebug() <<  unit_folder + "traits.ini" << " " << level_;
 }