Differences From Artifact [d24ac241a4]:
- File exec.c — part of check-in [f1435f4c66] at 2020-12-19 22:31:25 on branch trunk — Add a message that game cannot continue with no objects (user: user, size: 77175) [annotate] [blame] [check-ins using]
To Artifact [3b5e9774eb]:
- File exec.c — part of check-in [f263eed6d9] at 2020-12-20 01:22:56 on branch trunk — Cause visual animations of an object to reset the first time each turn that object sets a logical animation (user: user, size: 77237) [annotate] [blame] [check-ins using]
| ︙ | |||
224 225 226 227 228 229 230 231 232 233 234 235 236 237 | 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 | + |
static void animate(Uint32 n,Uint32 f,Uint32 a0,Uint32 a1,Uint32 t) {
Animation*an=objects[n]->anim;
objects[n]->image=a0;
f&=0x0B;
if(!an) an=objects[n]->anim=animalloc();
if(an->status&ANISTAT_SYNCHRONIZED) an->status=0;
if(an->count==max_animation) f=ANI_STOP;
if(!an->count && (an->status&ANISTAT_VISUAL)) an->status=0;
if(f&(ANI_ONCE|ANI_LOOP)) {
switch(an->status) {
case 0:
an->vtime=an->lstep=an->vstep=0;
an->vimage=a0;
break;
case ANISTAT_LOGICAL:
|
| ︙ |