- [FIX] Les plantilles d'actor no se podien actualitzar

This commit is contained in:
2024-06-22 18:30:29 +02:00
parent 753a0c4b3a
commit f17b7eca7b

View File

@@ -477,8 +477,7 @@ bool game::loop()
{ {
act = actor::getFirst(); act = actor::getFirst();
while (act) { while (act) {
// [WORKING HERE] if ((act->flags&FLAG_NOEDITOR)!=FLAG_NOEDITOR && (act->flags&FLAG_HERO)!=FLAG_HERO) {
//if ((act->flags&FLAG_NOEDITOR)!=FLAG_NOEDITOR && (act->flags&FLAG_HERO)!=FLAG_HERO) {
if (section==SECTION_ACTOR && act==actor::getSelected()) { if (section==SECTION_ACTOR && act==actor::getSelected()) {
draw::color(LIGHT+BLUE); draw::color(LIGHT+BLUE);
draw::fillrect(4, 2+line*9, 92, 9); draw::fillrect(4, 2+line*9, 92, 9);
@@ -489,7 +488,7 @@ bool game::loop()
} }
draw::print(act->name, 14, 4+line*9, LIGHT+WHITE, BLACK); draw::print(act->name, 14, 4+line*9, LIGHT+WHITE, BLACK);
line++; line++;
//} }
act = act->next; act = act->next;
} }
@@ -745,7 +744,7 @@ switch (section)
if (ui::button("ADD TO TEMPLATES", 2, line, 96, 11)) if (ui::button("ADD TO TEMPLATES", 2, line, 96, 11))
{ {
if (act && !actor::templates::getByName(act->name)) actor::templates::add(act); if (act) actor::templates::add(act);
} }
//changed |= btn_opt("ANIMCYC", 2, 106, act->anim_cycle, {0, 1}, {"0 1 0 2", "0 1 2 3"}); //changed |= btn_opt("ANIMCYC", 2, 106, act->anim_cycle, {0, 1}, {"0 1 0 2", "0 1 2 3"});