projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improved performance of game actions loop in MM engine
[rocksndiamonds.git]
/
src
/
tools.c
diff --git
a/src/tools.c
b/src/tools.c
index fbfb601af898908d12a8b5d1f2ee7ae255e7c5e5..5e5a2e1d01708640a63511faab85a617e596d843 100644
(file)
--- a/
src/tools.c
+++ b/
src/tools.c
@@
-9427,6
+9427,17
@@
int getGraphicInfo_Delay(int graphic)
return graphic_info[graphic].anim_delay;
}
return graphic_info[graphic].anim_delay;
}
+boolean getGraphicInfo_NewFrame(int x, int y, int graphic)
+{
+ if (!IS_NEW_FRAME(GfxFrame[x][y], graphic))
+ return FALSE;
+
+ if (ANIM_MODE(graphic) & (ANIM_TILED | ANIM_RANDOM_STATIC))
+ return FALSE;
+
+ return TRUE;
+}
+
void PlayMenuSoundExt(int sound)
{
if (sound == SND_UNDEFINED)
void PlayMenuSoundExt(int sound)
{
if (sound == SND_UNDEFINED)