aboutsummaryrefslogtreecommitdiffstats
path: root/engine/overworld/specific_script_flags.asm
blob: bd04514513a6c690420737595fe07b20184f9c39 (plain) (blame)
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 BIT_CUR_MAP_LOADED_2, [hl]
	ret

.in_list
	ld hl, wCurrentMapScriptFlags
	set BIT_CUR_MAP_LOADED_1, [hl]
	ret

INCLUDE "data/maps/bit_5_maps.asm"