mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 09:56:30 +00:00
GRIM: Fix the spelling of length in Iris
This commit is contained in:
parent
eb62d4a142
commit
9862686ef4
@ -36,12 +36,12 @@ Iris::~Iris() {
|
||||
|
||||
}
|
||||
|
||||
void Iris::play(Iris::Direction dir, int x, int y, int lenght) {
|
||||
void Iris::play(Iris::Direction dir, int x, int y, int length) {
|
||||
_playing = true;
|
||||
_direction = dir;
|
||||
_targetX = x;
|
||||
_targetY = y;
|
||||
_lenght = lenght;
|
||||
_length = length;
|
||||
_currTime = 0;
|
||||
}
|
||||
|
||||
@ -62,12 +62,12 @@ void Iris::update(int frameTime) {
|
||||
}
|
||||
|
||||
_currTime += frameTime;
|
||||
if (_currTime >= _lenght) {
|
||||
if (_currTime >= _length) {
|
||||
_playing = false;
|
||||
return;
|
||||
}
|
||||
|
||||
float factor = (float)_currTime / (float)_lenght;
|
||||
float factor = (float)_currTime / (float)_length;
|
||||
if (_direction == Open) {
|
||||
factor = 1 - factor;
|
||||
}
|
||||
@ -87,7 +87,7 @@ void Iris::saveState(SaveGame *state) const {
|
||||
state->writeLESint32(_y1);
|
||||
state->writeLESint32(_x2);
|
||||
state->writeLESint32(_y2);
|
||||
state->writeLESint32(_lenght);
|
||||
state->writeLESint32(_length);
|
||||
state->writeLESint32(_currTime);
|
||||
|
||||
state->endSection();
|
||||
@ -102,7 +102,7 @@ void Iris::restoreState(SaveGame *state) {
|
||||
_y1 = state->readLESint32();
|
||||
_x2 = state->readLESint32();
|
||||
_y2 = state->readLESint32();
|
||||
_lenght = state->readLESint32();
|
||||
_length = state->readLESint32();
|
||||
_currTime = state->readLESint32();
|
||||
|
||||
state->endSection();
|
||||
|
@ -37,7 +37,7 @@ public:
|
||||
Iris();
|
||||
~Iris();
|
||||
|
||||
void play(Direction dir, int x, int y, int lenght);
|
||||
void play(Direction dir, int x, int y, int length);
|
||||
void draw();
|
||||
void update(int frameTime);
|
||||
|
||||
@ -53,7 +53,7 @@ private:
|
||||
int _y2;
|
||||
int _targetX;
|
||||
int _targetY;
|
||||
int _lenght;
|
||||
int _length;
|
||||
int _currTime;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user