16 uint8_t bgact,
bool dark,
int effect,
int tag2,
17 const std::vector<RoomObject>& objects, uint16_t room_flags) {
19 const bool water_flag = (room_flags & 0x0080) != 0;
20 const bool dam_gate_open = (room_flags & 0x0100) != 0;
23 (
object.id_ == 0xDA && !water_flag) ||
24 (
object.id_ == 0xD8 && water_flag) ||
25 ((
object.id_ == 0x133 ||
object.id_ == 0xFB3) && tag2 == 0x1B &&
34 const uint8_t subscreen = kSubscreenEnable[bgact];
35 if (subscreen == 0xFF) {
40 registers.
ts = bgact == 2 ? 0x03 : subscreen;
46 }
else if (bgact == 4) {