Update sprite calls in main loop

svn-id: r16894
This commit is contained in:
Travis Howell 2005-02-24 08:00:30 +00:00
parent 90a158fbf7
commit 350ed76947
3 changed files with 10 additions and 5 deletions

View File

@ -968,13 +968,13 @@ protected:
void spriteGroupCheck(int spriteGroupId);
void spriteMarkIfInGroup(int spriteGroupId, uint32 flags);
void spriteInfoSet_addImageToList(int spriteId, int imageNum, int *spriteIdptr);
void spritesUpdateImages();
public:
void spritesBlitToScreen();
void spritesMarkDirty(bool unkFlag);
void spritesSortActiveSprites();
void spritesProcessWiz(bool arg);
void spritesUpdateImages();
protected:
/* HE version 90 script opcodes */

View File

@ -1859,13 +1859,15 @@ load_game:
}
if (_heversion >= 71) {
preProcessAuxQueue();
processActors();
postProcessAuxQueue();
if (_heversion >= 90) {
((ScummEngine_v90he *)this)->spritesMarkDirty(0);
((ScummEngine_v90he *)this)->spritesProcessWiz(true);
}
processActors();
postProcessAuxQueue();
} else {
processActors();
}
@ -1940,6 +1942,9 @@ load_game:
/* show or hide mouse */
_system->showMouse(_cursor.state > 0);
if (_heversion >= 90)
((ScummEngine_v90he *)this)->spritesUpdateImages();
if (VAR_TIMER != 0xFF)
VAR(VAR_TIMER) = 0;
return VAR(VAR_TIMER_NEXT);

View File

@ -1119,9 +1119,9 @@ void ScummEngine_v90he::spritesSortActiveSprites() {
if (spi->flags & kSF16) {
if (!spi->flags & kSF23) {
if (!spi->flags & kSF30)
if (!(spi->flags & kSF30))
spi->flags |= kSFNeedRedraw;
if (!spi->flags & kSF31)
if (!(spi->flags & kSF31))
spi->flags |= kSF01;
}
if (spi->group_num)