Version differences: Difference between revisions

no edit summary
(thanks josh!)
No edit summary
Line 30: Line 30:
| audio/interface_2.c || style="background-color: #F99" | In the U version, func_8031D630 has a check that increments its second argument if it's 0. This is because later on in the function, a value is divided by this argument. This check does not exist in the J version.
| audio/interface_2.c || style="background-color: #F99" | In the U version, func_8031D630 has a check that increments its second argument if it's 0. This is because later on in the function, a value is divided by this argument. This check does not exist in the J version.
|-
|-
| audio/interface_2.c ||  
| audio/interface_2.c || style="background-color: #F99" | In func_8031D924 in the J version, (&D_80226D9C->task.t)->yield_data_ptr is set to gAudioSPTaskYieldBuffer and (&D_80226D9C->task.t)->yield_data_size is set to 0x400. In the U version, yield_data_ptr is set to NULL and yield_data_size is set to 0.
|-
|-
| audio/interface_2.c ||  
| audio/interface_2.c || style="background-color: #F99" | Under certain circumstances in func_8031E16C, func_8031E0E4 will be called only in the U version.
|-
|-
| audio/interface_2.c ||  
| audio/interface_2.c || style="background-color: #F99" | In the U version of func_8031EB24, "div" is set to "listIndex < 3 ? 2 : 3".
|-
|-
| audio/interface_2.c ||  
| audio/interface_2.c || style="background-color: #F99" | In the J version of func_8031EB24, f12 is set to 0 if D_80332028[gCurrLevelNum] < D_80360C48[listIndex][item].unkC, and 1.0 - D_80360C48[listIndex][item].unkC / f0 otherwise. In the U version, if D_80360C48[listIndex][item].unkC > 22000.0f, f12 is set to 0; otherwise, the J logic is run except instead of setting f12 to 0 it sets it to ((22000.0f - D_80360C48[listIndex][item].unkC) / (22000.0f - f0)) * (1.0f - arg2).
|-
|-
| audio/interface_2.c ||  
| audio/interface_2.c || style="background-color: #F99" | In the J version of func_8031EB24, when the 0x2000000 flag of D_80360C48[listIndex][item].unk14 is set, (D_80226EB8 & 0xf) / '''192.0''' is subtracted from f12 unless f12 is 0. In the U version, when the flag is set, (f32) (D_80226EB8 & 0xf) / '''192.0f'''; is subtracted from f12 unless f12 is less than 0.8.
|-
|-
| audio/interface_2.c ||  
| audio/interface_2.c || style="background-color: #F99" | In the J version of func_8031ED70, "level" is set to "(gCurrLevelNum > LEVEL_MAX ? LEVEL_MAX : gCurrLevelNum)" and "area" is set to "gCurrAreaIndex - 1". "area" is then capped at 2. In the U version, if the 0x20 flag of D_80360C48[listIndex][item].unk14 is set, "level" and "area" will both be set to 0 instead.
|-
|-
| audio/interface_2.c ||  
| audio/interface_2.c || style="background-color: #F99" |  
|-
|-
| audio/interface_2.c ||  
| audio/interface_2.c || style="background-color: #F99" |  
|-
|-
| audio/interface_2.c ||  
| audio/interface_2.c || style="background-color: #F99" |  
|-
|-
| audio/interface_2.c ||  
| audio/interface_2.c || style="background-color: #F99" |  
|-
| audio/interface_2.c ||  
|-
|-
| audio/playback.c || style="background-color: #F99" | 8 separate numeric literals are doubles in J but floats in U.
| audio/playback.c || style="background-color: #F99" | 8 separate numeric literals are doubles in J but floats in U.
Line 82: Line 80:
| game/behaviors/bowser.c.inc || style="background-color: #FFFF90" | In ActionBowser2, when Bowser's subaction is 2, func_u_802B4AF4 is called in the U version.
| game/behaviors/bowser.c.inc || style="background-color: #FFFF90" | In ActionBowser2, when Bowser's subaction is 2, func_u_802B4AF4 is called in the U version.
|-
|-
| game/behaviors/bowser_key.c.inc || style="background-color: #99F" | If bowser key action is 0, plays sound 0x30370081 on J but 0x38378081 on U (todo: check if these are actually different sounds)
| game/behaviors/bowser_key.c.inc || style="background-color: #9F9" | The sound of a Bowser key bouncing on the ground has a higher pitch in the J version than in the U version.
|-
|-
| game/behaviors/bully.c.inc || style="background-color: #99F" | BullySpawnCoin plays sound 0x30300081 on J but 0x38300081 on U (todo: check if these are actually different sounds)
| game/behaviors/bully.c.inc || style="background-color: #99F" | The sound a bully makes when it spawns a coin after being killed has a slightly higher pitch in the J version than in the U version.
|-
|-
| game/behaviors/camera_lakitu.c.inc || style="background-color: #9F9" | The "Lakitu's Message" music clip that plays when Lakitu comes near Mario to explain the camera controls at the start of the game isn't played or doesn't exist on J version.
| game/behaviors/camera_lakitu.c.inc || style="background-color: #9F9" | The "Lakitu's Message" music clip that plays when Lakitu comes near Mario to explain the camera controls at the start of the game isn't played or doesn't exist on J version.
Line 92: Line 90:
| game/behaviors/celebration_star.c.inc || style="background-color: #FFFF90" | On the J version, when a celebration star is turning to face the camera, it is scaled by 1/10 units per frame. On the U version, it checks if it's a key. If it's a key, it scales 1/30 units per frame; if it's the BitS star, it scales 1/10 units per frame. (todo: check if the bits star ever faces the camera)
| game/behaviors/celebration_star.c.inc || style="background-color: #FFFF90" | On the J version, when a celebration star is turning to face the camera, it is scaled by 1/10 units per frame. On the U version, it checks if it's a key. If it's a key, it scales 1/30 units per frame; if it's the BitS star, it scales 1/10 units per frame. (todo: check if the bits star ever faces the camera)
|-
|-
| game/behaviors/coin.c.inc ||  style="background-color: #99F" | BehCoinLoop plays sound 0x30300081 on J but 0x38300081 on U when the timer is set to 0 (todo: check if these are actually different sounds)
| game/behaviors/coin.c.inc ||  style="background-color: #99F" | The sound a coin makes when it spawns (through beh_single_coin_gets_spawned) has a slightly higher pitch in the J version than in the U version.
|-
|-
| game/behaviors/coin.c.inc || style="background-color: #9F9" | On the U version, coins will unload if they land on the death barrier. On the J version, they will continue to exist.
| game/behaviors/coin.c.inc || style="background-color: #9F9" | On the U version, coins will unload if they land on the death barrier. On the J version, they will continue to exist.