Fixed wrong energy level in CBot (mentioned in #601)
parent
6ed83bb63f
commit
07141f6d90
|
@ -3883,7 +3883,7 @@ void CScriptFunctions::uObject(CBotVar* botThis, void* user)
|
||||||
|
|
||||||
// Updates the energy level of the object.
|
// Updates the energy level of the object.
|
||||||
pVar = pVar->GetNext(); // "energyLevel"
|
pVar = pVar->GetNext(); // "energyLevel"
|
||||||
value = object->GetEnergy();
|
value = object->GetEnergyLevel();
|
||||||
pVar->SetValFloat(value);
|
pVar->SetValFloat(value);
|
||||||
|
|
||||||
// Updates the shield level of the object.
|
// Updates the shield level of the object.
|
||||||
|
|
Loading…
Reference in New Issue