… | |
… | |
1315 | if (op->face != tmp->face ) f.put (KW_face , op->face ? &faces [op->face ] : 0); |
1315 | if (op->face != tmp->face ) f.put (KW_face , op->face ? &faces [op->face ] : 0); |
1316 | if (op->sound != tmp->sound ) f.put (KW_sound , op->sound ? &faces [op->sound ] : 0); |
1316 | if (op->sound != tmp->sound ) f.put (KW_sound , op->sound ? &faces [op->sound ] : 0); |
1317 | if (op->sound_destroy != tmp->sound_destroy) f.put (KW_sound_destroy, op->sound_destroy ? &faces [op->sound_destroy] : 0); |
1317 | if (op->sound_destroy != tmp->sound_destroy) f.put (KW_sound_destroy, op->sound_destroy ? &faces [op->sound_destroy] : 0); |
1318 | |
1318 | |
1319 | if (op->animation_id != tmp->animation_id) |
1319 | if (op->animation_id != tmp->animation_id) |
1320 | if (op->animation_id) |
1320 | if (op->has_anim ()) |
1321 | f.put (KW_animation, animations[GET_ANIM_ID (op)].name); |
1321 | f.put (KW_animation, op->anim ().name); |
1322 | else |
1322 | else |
1323 | { |
1323 | { |
1324 | f.put (KW_animation, (const char *)0); |
1324 | f.put (KW_animation, (const char *)0); |
1325 | op->flag [FLAG_ANIMATE] = false; // TODO: why force to false here? |
1325 | op->flag [FLAG_ANIMATE] = false; // TODO: why force to false here? |
1326 | } |
1326 | } |