mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
PEGASUS: Add a hack to skip energy bar calibration for now
This commit is contained in:
parent
b31efb02b5
commit
a57b1de6ee
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user