PEGASUS: Add a hack to skip energy bar calibration for now

This commit is contained in:
Matthew Hoops 2011-10-02 21:22:52 -04:00
parent b31efb02b5
commit a57b1de6ee

View File

@ -248,7 +248,7 @@ void EnergyMonitor::calibrateEnergyBar() {
_calibrating = true;
// TODO: set death reason to -1
vm->setEnergyDeathReason(-1);
uint32 numFrames = _energyLight.getNumFrames();
for (uint32 i = 1; i < numFrames; i++) {
@ -261,18 +261,25 @@ void EnergyMonitor::calibrateEnergyBar() {
_energyLight.setCurrentFrameIndex(0);
_energyLight.hide();
#if 0
// FIXME: This doesn't work yet
show();
setEnergyValue(0);
setEnergyDrainRate(-kMaxJMPEnergy / 2);
// Make sure warning light is hidden...
_energyLight.hide();
while (getCurrentEnergy() != (int32)kMaxJMPEnergy)
while (getCurrentEnergy() != (int32)kMaxJMPEnergy) {
vm->checkCallBacks();
vm->refreshDisplay();
g_system->delayMillis(10);
}
vm->refreshDisplay();
setEnergyDrainRate(0);
hide();
#endif
_calibrating = false;
}