summaryrefslogtreecommitdiff
path: root/src/object/archway.c
blob: 76a9df16e66f3a052474e5aba03e48e55e1ce0d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
 * @file archway.c
 * @ingroup Objects
 *
 * @brief Archway object
 */
#include "entity.h"
#include "game.h"

void Archway(Entity* this) {
    if (this->action == 0) {
        this->action = 1;
        this->spriteSettings.draw = 1;
        this->frameIndex = this->type2;
        this->collisionLayer = 2;
        UpdateSpriteForCollisionLayer(this);
        if (AreaIsDungeon()) {
            this->spritePriority.b0 = 1;
        }
    }
}