fix: Minor fix on commented debug string

This commit is contained in:
Pax1601 2025-03-24 21:17:41 +01:00
parent 2b5b428237
commit 7573720398

View File

@ -18,7 +18,7 @@ extern UnitsManager* unitsManager;
Unit::Unit(json::value json, unsigned int ID) :
ID(ID)
{
// log("Creating unit with ID: " + to_string(ID));
log("Creating unit with ID: " + to_string(ID));
}
Unit::~Unit()
@ -83,9 +83,8 @@ void Unit::update(json::value json, double dt)
if (json.has_boolean_field(L"isAlive"))
setAlive(json[L"isAlive"].as_bool());
if (json.has_boolean_field(L"radarState")) {
if (json.has_boolean_field(L"radarState"))
setRadarState(json[L"radarState"].as_bool());
}
if (json.has_boolean_field(L"isHuman"))
setHuman(json[L"isHuman"].as_bool());