blob: b59aa9d056b8ccebbf70f1cb1479213c1e919749 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
SetMapSpecificScriptFlagsOnMapReload::
ld a, [wCurMap]
cp VERMILION_GYM
jr z, .vermilion_gym
ld c, a
ld hl, Bit5Maps
.search_loop
ld a, [hli]
cp c
jr z, .in_list
cp $ff
jr nz, .search_loop
ret
.vermilion_gym
ld hl, wCurrentMapScriptFlags
set 6, [hl]
ret
.in_list
ld hl, wCurrentMapScriptFlags
set 5, [hl]
ret
INCLUDE "data/maps/bit_5_maps.asm"
|