- [FIX] Faltaven coses per inicialitzar al crear actors-porta
- [FIX] Les portes ja es veuen com toca respecte al heroi
This commit is contained in:
@@ -53,8 +53,7 @@ namespace actor
|
||||
|
||||
actor_t *create(std::string name, vec3_t p, vec3_t s, std::string bmp, SDL_Rect r, SDL_Point o)
|
||||
{
|
||||
actor_t *act = (actor_t*)malloc(sizeof(actor_t));
|
||||
act->tag = current_tag++;
|
||||
actor_t *act = createEmptyActor();
|
||||
strcpy(act->name, name.c_str());
|
||||
strcpy(act->bmp, bmp.c_str());
|
||||
act->pos = p;
|
||||
@@ -62,14 +61,6 @@ namespace actor
|
||||
act->surface = draw::getSurface(bmp.c_str());
|
||||
act->bmp_rect = r;
|
||||
act->bmp_offset = o;
|
||||
act->anim_cycle = act->orient = 0;
|
||||
act->push = act->mov_push = PUSH_NONE;
|
||||
act->below = act->above = nullptr;
|
||||
act->prev = act->next = nullptr;
|
||||
act->anim_wait = act->anim_wait_count = 0;
|
||||
act->anim_frame=0;
|
||||
act->react_mask = act->react_push = 0;
|
||||
act->flags = FLAG_NONE;
|
||||
return act;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user