projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20100214-2-src
[rocksndiamonds.git]
/
src
/
tools.c
diff --git
a/src/tools.c
b/src/tools.c
index b4f9fc4a4670d13192768205a74f66971fa3b28c..773a59db1efd0efbe2a2ab69b5d6cf566ff7c37a 100644
(file)
--- a/
src/tools.c
+++ b/
src/tools.c
@@
-7738,17
+7738,21
@@
void InitGraphicInfo_EM(void)
void getGraphicSource_SP(struct GraphicInfo_SP *g_sp,
int graphic, int sync_frame, int x, int y)
{
void getGraphicSource_SP(struct GraphicInfo_SP *g_sp,
int graphic, int sync_frame, int x, int y)
{
-#if 0
- /* currently we get the actual graphic animation frame */
- int frame = sync_frame;
-#else
- /* (future implementations may provide a synchronization frame instead) */
int frame = getGraphicAnimationFrame(graphic, sync_frame);
int frame = getGraphicAnimationFrame(graphic, sync_frame);
-#endif
getGraphicSource(graphic, frame, &g_sp->bitmap, &g_sp->src_x, &g_sp->src_y);
}
getGraphicSource(graphic, frame, &g_sp->bitmap, &g_sp->src_x, &g_sp->src_y);
}
+boolean isRandomAnimation_SP(int graphic)
+{
+ return (ANIM_MODE(graphic) == ANIM_RANDOM);
+}
+
+boolean isNextAnimationFrame_SP(int graphic, int sync_frame)
+{
+ return (IS_NEXT_FRAME(sync_frame, graphic));
+}
+
int getGraphicInfo_Delay(int graphic)
{
return graphic_info[graphic].anim_delay;
int getGraphicInfo_Delay(int graphic)
{
return graphic_info[graphic].anim_delay;