diff options
| author | Eugene Sandulenko | 2005-04-16 20:59:24 +0000 | 
|---|---|---|
| committer | Eugene Sandulenko | 2005-04-16 20:59:24 +0000 | 
| commit | 44acfd9467e126d324a6ac730dccedd30c916480 (patch) | |
| tree | fed123167f011ddcec3a44879993d126e1eb8130 /saga/animation.cpp | |
| parent | aea451f092a90bdc28bc8bd82508ec40b9920868 (diff) | |
| download | scummvm-rg350-44acfd9467e126d324a6ac730dccedd30c916480.tar.gz scummvm-rg350-44acfd9467e126d324a6ac730dccedd30c916480.tar.bz2 scummvm-rg350-44acfd9467e126d324a6ac730dccedd30c916480.zip | |
Implement sfGetDeltaFrame and sfEnableZone. Fixes freeze when sanctuary
gates open and also used in world map.
Spelling and indentation fixes here and there.
svn-id: r17640
Diffstat (limited to 'saga/animation.cpp')
| -rw-r--r-- | saga/animation.cpp | 11 | 
1 files changed, 10 insertions, 1 deletions
| diff --git a/saga/animation.cpp b/saga/animation.cpp index 0f2ffca611..5948cb78d5 100644 --- a/saga/animation.cpp +++ b/saga/animation.cpp @@ -157,7 +157,7 @@ int Anim::link(int16 anim_id1, int16 anim_id2) {  void Anim::setCycles(uint animId, int cycles) {  	if (animId >= _anim_count) { -		warning("Anim::setStopFrame(): wrong animation number (%d)", animId); +		warning("Anim::setCycles(): wrong animation number (%d)", animId);  		return;  	} @@ -393,6 +393,15 @@ int Anim::setFrameTime(uint16 anim_id, int time) {  	return SUCCESS;  } +int16 Anim::getCurrentFrame(uint16 animId) { +	if (animId >= _anim_count) { +		warning("Anim::stop(): wrong animation number (%d)", animId); +		return 0; +	} +	 +	return _anim_tbl[animId]->current_frame; +} +  int Anim::freeId(uint16 anim_id) {  	ANIMATION *anim; | 
