Use int8 instead of char.

Char is not guaranteed to be signed.
This commit is contained in:
Snesrev
2023-03-20 20:01:27 +01:00
parent 51ac35a65d
commit 7a29af4260
26 changed files with 532 additions and 532 deletions

View File

@@ -1165,8 +1165,8 @@ void Botwoon_Func_21(void) { // 0xB39C48
void Botwoon_Func_22(void) { // 0xB39C7B
Enemy_Botwoon *E = Get_Botwoon(cur_enemy_index);
uint16 botwoon_var_B = E->botwoon_var_B;
*(uint16 *)((char *)&kraid_unk9000 + botwoon_var_B) = E->base.x_pos;
*(uint16 *)((char *)&g_word_7E9002 + botwoon_var_B) = E->base.y_pos;
*(uint16 *)((uint8 *)&kraid_unk9000 + botwoon_var_B) = E->base.x_pos;
*(uint16 *)((uint8 *)&g_word_7E9002 + botwoon_var_B) = E->base.y_pos;
}
void Botwoon_Func_23(void) { // 0xB39C90
@@ -1199,8 +1199,8 @@ void Botwoon_Func_23(void) { // 0xB39C90
}
v6 = R18_;
int v7 = botwoo_var_00 >> 1;
enemy_projectile_x_pos[v7] = *(uint16 *)((char *)&kraid_unk9000 + R18_);
enemy_projectile_y_pos[v7] = *(uint16 *)((char *)&g_word_7E9002 + v6);
enemy_projectile_x_pos[v7] = *(uint16 *)((uint8 *)&kraid_unk9000 + R18_);
enemy_projectile_y_pos[v7] = *(uint16 *)((uint8 *)&g_word_7E9002 + v6);
R18_ = (R18_ - E->botwoon_var_C) & 0x3FF;
--R20_;
--R20_;