Free Hero Mesh

Check-in [e21f269ab7]
Login
This is a mirror of the main repository for Free Hero Mesh. New tickets and changes will not be accepted at this mirror.
Overview
Comment:Fix ONCE animations
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: e21f269ab7c7d62572bc1193b3f3c9e0b4a50567
User & Date: user on 2020-12-17 03:02:58
Other Links: manifest | tags
Context
2020-12-17
03:20
Correct writes to standard variables of other objects check-in: a7e5fd6129 user: user tags: trunk
03:02
Fix ONCE animations check-in: e21f269ab7 user: user tags: trunk
02:16
Change sql_interactive to use sqlite3_get_table so that it is not executing the SQL codes multiple times check-in: ef1133452e user: user tags: trunk
Changes

Modified exec.c from [4b3ee71562] to [c2552180c2].

216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
  a->lstep=a->vstep=a->ltime=a->vtime=a->status=a->count=0;
  return a;
}

static void animate(Uint32 n,Uint32 f,Uint32 a0,Uint32 a1,Uint32 t) {
  Animation*an=objects[n]->anim;
  objects[n]->image=a0;
  f&=0x0A;
  if(!an) an=objects[n]->anim=animalloc();
  if(an->status&ANISTAT_SYNCHRONIZED) an->status=0;
  if(an->count==max_animation) f=ANI_STOP;
  if(f&(ANI_ONCE|ANI_LOOP)) {
    switch(an->status) {
      case 0:
        an->vtime=an->lstep=an->vstep=0;







|







216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
  a->lstep=a->vstep=a->ltime=a->vtime=a->status=a->count=0;
  return a;
}

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(f&(ANI_ONCE|ANI_LOOP)) {
    switch(an->status) {
      case 0:
        an->vtime=an->lstep=an->vstep=0;