-missed animator_v2.cpp in last commit

svn-id: r31171
This commit is contained in:
Florian Kagerer 2008-03-17 23:45:33 +00:00
parent 760b44da10
commit 68a603139d
3 changed files with 8 additions and 3 deletions

View File

@ -258,6 +258,11 @@ void KyraEngine_v2::flagAnimObjsForRefresh() {
curEntry->needRefresh = 1;
}
void KyraEngine_v2::flagAnimObjsUnk8() {
for (AnimObj *curEntry = _animList; curEntry; curEntry = curEntry->nextObject)
curEntry->unk8 = 1;
}
void KyraEngine_v2::updateCharFacing() {
if (_mainCharacter.x1 > _mouseX)
_mainCharacter.facing = 5;

View File

@ -466,7 +466,7 @@ protected:
void refreshAnimObjectsIfNeed();
void updateItemAnimations();
void flagAnimObjUnk8();
void flagAnimObjsUnk8();
void flagAnimObjsForRefresh();
void updateCharFacing();

View File

@ -374,7 +374,7 @@ int KyraEngine_v2::o2_drawShape(ScriptState *script) {
_screen->drawShape(0, shp, x, y, 2, dsFlag ? 1 : 0);
flagAnimObjsForRefresh();
flagAnimObjUnk8();
flagAnimObjsUnk8();
refreshAnimObjectsIfNeed();
_screen->showMouse();
}
@ -570,7 +570,7 @@ int KyraEngine_v2::o2_drawSceneShape(ScriptState *script) {
_screen->drawShape(0, _sceneShapeTable[shape], x, y, 2, flag);
flagAnimObjUnk8();
flagAnimObjsUnk8();
flagAnimObjsForRefresh();
refreshAnimObjectsIfNeed();
_screen->showMouse();