projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20100309-2-src
[rocksndiamonds.git]
/
src
/
game.c
diff --git
a/src/game.c
b/src/game.c
index 46f050d2c3c18dd37c7ab8ae7fcdc40b3de2ad7a..d19831759e264f2419d09ad36316986eefa617ae 100644
(file)
--- a/
src/game.c
+++ b/
src/game.c
@@
-16440,8
+16440,8
@@
struct EngineSnapshotInfo
int choice_pos[NUM_GROUP_ELEMENTS];
/* runtime values for belt position animations */
int choice_pos[NUM_GROUP_ELEMENTS];
/* runtime values for belt position animations */
- int belt_graphic[4
*
NUM_BELT_PARTS];
- int belt_anim_mode[4
*
NUM_BELT_PARTS];
+ int belt_graphic[4
][
NUM_BELT_PARTS];
+ int belt_anim_mode[4
][
NUM_BELT_PARTS];
};
static struct EngineSnapshotInfo engine_snapshot_rnd;
};
static struct EngineSnapshotInfo engine_snapshot_rnd;
@@
-16481,8
+16481,8
@@
static void SaveEngineSnapshotValues_RND()
int graphic = el2img(element);
int anim_mode = graphic_info[graphic].anim_mode;
int graphic = el2img(element);
int anim_mode = graphic_info[graphic].anim_mode;
- engine_snapshot_rnd.belt_graphic[i
* 4 +
j] = graphic;
- engine_snapshot_rnd.belt_anim_mode[i
* 4 +
j] = anim_mode;
+ engine_snapshot_rnd.belt_graphic[i
][
j] = graphic;
+ engine_snapshot_rnd.belt_anim_mode[i
][
j] = anim_mode;
}
}
}
}
}
}
@@
-16510,8
+16510,8
@@
static void LoadEngineSnapshotValues_RND()
{
for (j = 0; j < NUM_BELT_PARTS; j++)
{
{
for (j = 0; j < NUM_BELT_PARTS; j++)
{
- int graphic = engine_snapshot_rnd.belt_graphic[i
* 4 +
j];
- int anim_mode = engine_snapshot_rnd.belt_anim_mode[i
* 4 +
j];
+ int graphic = engine_snapshot_rnd.belt_graphic[i
][
j];
+ int anim_mode = engine_snapshot_rnd.belt_anim_mode[i
][
j];
graphic_info[graphic].anim_mode = anim_mode;
}
graphic_info[graphic].anim_mode = anim_mode;
}