瀏覽代碼

refractor stuff

SBird1337 7 年之前
父節點
當前提交
9f5b2b1e1e
共有 2 個文件被更改,包括 2 次插入8 次删除
  1. 1
    1
      src/overworld/tileset_animation/text_animator.c
  2. 1
    7
      src/specials/custom_specials.c

+ 1
- 1
src/overworld/tileset_animation/text_animator.c 查看文件

@@ -32,6 +32,7 @@ s16 char_to_tile_index(char chr) {
32 32
 }
33 33
 
34 34
 void draw_text_on_canvas(const char *txt) {
35
+    
35 36
     u16 current_tile = 0;
36 37
     while (*txt) {
37 38
         s16 tile = char_to_tile_index(*txt);
@@ -91,7 +92,6 @@ void anim_init_text(void) {
91 92
     blockset_one_current_tile = 0;
92 93
     blockset_one_max_tile = 0x280;
93 94
     blockset_one_animator = text_animator;
94
-    dprintf("%d\n", var_8000);
95 95
     if(var_8000 != 0)
96 96
         draw_text_on_canvas(map_texts[var_8000]);
97 97
 }

+ 1
- 7
src/specials/custom_specials.c 查看文件

@@ -81,7 +81,7 @@ extern pchar name_rival_female[5];
81 81
 /* === STATICS === */
82 82
 
83 83
 static special_func special_routines[10] = {
84
-    met_play,         cam_sp_move_camera, sp_init_script,  NULL, sp_dns_switch,
84
+    met_play,         cam_sp_move_camera, sp_init_script,  NULL, NULL,
85 85
     sp_random_number, sp_check_tileset,   sp_batchmaptile, sp_crystal_fade, sp_set_rival,
86 86
 };
87 87
 
@@ -95,12 +95,6 @@ void sp_set_rival(void) {
95 95
     }
96 96
 }
97 97
 
98
-void sp_dns_switch() {
99
-    volatile u8 *test_pointer = (u8 *)(0x0203FAB0);
100
-    *(test_pointer + 1) = (*(test_pointer + 1) == 3 ? 0 : (*(test_pointer + 1)) + 1);
101
-    *test_pointer = 1;
102
-}
103
-
104 98
 void sp_init_script() {
105 99
     for (u16 i = 0x1000; i < 0x1800; ++i)
106 100
         flag_clear(i);