mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-11 04:06:12 +00:00
Update sprite calls in main loop
svn-id: r16894
This commit is contained in:
parent
90a158fbf7
commit
350ed76947
@ -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 */
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user