summaryrefslogtreecommitdiff
path: root/src/rom_8080874.c
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2017-01-21 16:48:06 -0800
committerYamaArashi <shadow962@live.com>2017-01-21 16:48:06 -0800
commitbcaab977727ded65c9eeaef9dbef9e9441d26fb7 (patch)
treeb93f1df1194ebbe96e6b331b8387d75eeb19f4cb /src/rom_8080874.c
parenta8b6cad54a9e0abadd61d3d71d5e9ee9f279382b (diff)
formatting
Diffstat (limited to 'src/rom_8080874.c')
-rw-r--r--src/rom_8080874.c94
1 files changed, 53 insertions, 41 deletions
diff --git a/src/rom_8080874.c b/src/rom_8080874.c
index 29aeac97b..261ed46c9 100644
--- a/src/rom_8080874.c
+++ b/src/rom_8080874.c
@@ -21,65 +21,77 @@ extern void sub_8053E90(void);
extern u8 sub_810CDB8(u8, u8);
extern int sub_8080E70(void);
-void palette_bg_fill_white (void) {
- u32 source_color = 0x7fff7fff;
- CpuFastSet(&source_color, gPlttBufferFaded, 0x100 | (1 << 24));
+void palette_bg_fill_white(void)
+{
+ u32 source_color = 0x7fff7fff;
+ CpuFastSet(&source_color, gPlttBufferFaded, 0x100 | (1 << 24));
}
-void palette_bg_fill_black (void) {
- u32 source_color = 0;
- CpuFastSet(&source_color, gPlttBufferFaded, 0x100 | (1 << 24));
+void palette_bg_fill_black(void)
+{
+ u32 source_color = 0;
+ CpuFastSet(&source_color, gPlttBufferFaded, 0x100 | (1 << 24));
}
-void pal_fill_for_map_transition (void) {
- u8 map_light = get_map_light_from_warp0();
- switch (fade_type_for_given_maplight_pair(map_light, sav1_map_get_light_level())) {
+void pal_fill_for_map_transition(void)
+{
+ u8 map_light = get_map_light_from_warp0();
+ switch (fade_type_for_given_maplight_pair(map_light, sav1_map_get_light_level()))
+ {
case 0:
- fade_screen(0, 0);
- palette_bg_fill_black();
- break;
+ fade_screen(0, 0);
+ palette_bg_fill_black();
+ break;
case 1:
- fade_screen(2, 0);
- palette_bg_fill_white();
- }
+ fade_screen(2, 0);
+ palette_bg_fill_white();
+ }
}
-void pal_fill_black (void) {
- fade_screen(0, 0);
- palette_bg_fill_black();
+void pal_fill_black(void)
+{
+ fade_screen(0, 0);
+ palette_bg_fill_black();
}
-void fade_8080918 (void) {
- u8 light_level = sav1_map_get_light_level();
- switch (sub_810CDB8(light_level, warp1_get_mapheader() -> mapType)) {
+void fade_8080918(void)
+{
+ u8 light_level = sav1_map_get_light_level();
+ switch (sub_810CDB8(light_level, warp1_get_mapheader()->mapType))
+ {
case 0:
- fade_screen(1, 0);
- break;
+ fade_screen(1, 0);
+ break;
case 1:
- fade_screen(3, 0);
- }
+ fade_screen(3, 0);
+ }
}
-void sub_8080958 (u8 arg) {
- sub_8059B88(!arg);
+void sub_8080958(u8 arg)
+{
+ sub_8059B88(!arg);
}
-void task0A_asap_script_env_2_enable_and_set_ctx_running (u8 taskID) {
- if (sub_8080E70() == 1) {
- DestroyTask(taskID);
- EnableBothScriptContexts();
- }
+void task0A_asap_script_env_2_enable_and_set_ctx_running(u8 taskID)
+{
+ if (sub_8080E70() == 1)
+ {
+ DestroyTask(taskID);
+ EnableBothScriptContexts();
+ }
}
-void sub_8080990 (void) {
- ScriptContext2_Enable();
- sub_8053E90();
- pal_fill_black();
- CreateTask(&task0A_asap_script_env_2_enable_and_set_ctx_running, 0x0a);
+void sub_8080990(void)
+{
+ ScriptContext2_Enable();
+ sub_8053E90();
+ pal_fill_black();
+ CreateTask(&task0A_asap_script_env_2_enable_and_set_ctx_running, 0x0a);
}
-void sub_80809B0 (void) {
- ScriptContext2_Enable();
- pal_fill_black();
- CreateTask(&task0A_asap_script_env_2_enable_and_set_ctx_running, 0x0a);
+void sub_80809B0(void)
+{
+ ScriptContext2_Enable();
+ pal_fill_black();
+ CreateTask(&task0A_asap_script_env_2_enable_and_set_ctx_running, 0x0a);
}