… | |
… | |
176 | EXTERN int num_animations,animations_allocated, bmaps_checksum; |
176 | EXTERN int num_animations,animations_allocated, bmaps_checksum; |
177 | |
177 | |
178 | /* Rotate right from bsd sum. This is used in various places for checksumming */ |
178 | /* Rotate right from bsd sum. This is used in various places for checksumming */ |
179 | #define ROTATE_RIGHT(c) if ((c) & 01) (c) = ((c) >>1) + 0x80000000; else (c) >>= 1; |
179 | #define ROTATE_RIGHT(c) if ((c) & 01) (c) = ((c) >>1) + 0x80000000; else (c) >>= 1; |
180 | |
180 | |
181 | |
|
|
182 | #define SET_ANIMATION(ob,newanim) ob->face=&new_faces[animations[ob->animation_id].faces[newanim]] |
181 | #define SET_ANIMATION(ob,newanim) ob->face = new_faces + animations [ob->animation_id].faces [newanim] |
183 | #define GET_ANIMATION(ob,anim) (animations[ob->animation_id].faces[anim]) |
182 | #define GET_ANIMATION(ob,anim) animations [ob->animation_id].faces [anim] |
184 | #define GET_ANIM_ID(ob) (ob->animation_id) |
183 | #define GET_ANIM_ID(ob) (ob->animation_id) |
185 | /* NUM_ANIMATIONS returns the number of animations allocated. The last |
184 | /* NUM_ANIMATIONS returns the number of animations allocated. The last |
186 | * usuable animation will be NUM_ANIMATIONS-1 (for example, if an object |
185 | * usuable animation will be NUM_ANIMATIONS-1 (for example, if an object |
187 | * has 8 animations, NUM_ANIMATIONS will return 8, but the values will |
186 | * has 8 animations, NUM_ANIMATIONS will return 8, but the values will |
188 | * range from 0 through 7. |
187 | * range from 0 through 7. |