mirror of
https://github.com/n64decomp/mk64
synced 2026-07-09 05:13:17 -04:00
Add some more actor types, match a function (#191)
* Add some more actor types, match a function * Identify the boundBox member of the Player struct Note that while the `flag` members are signed, they should be understood as just a group of bits. Based on some googling around (see https://stackoverflow.com/a/11644749) the operation `thing.flag |= 0x8000` is NOT undefined behaviour, even though that is setting the sign bit. The numerical interpretation of the result as a signed number is implementation defined, while the actual operation acts on the bit representation of the number. Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
This commit is contained in:
+2
-2
@@ -21,7 +21,7 @@ void spawn_player(Player *player, s8 playerIndex, f32 arg2, f32 arg3, f32 arg4,
|
||||
player->characterId = arg6;
|
||||
player->unk_0B6 = 0;
|
||||
player->unk_0FC = gKartFrictionTable[player->characterId];
|
||||
player->unk_070 = gKartBoundingBoxTable[player->characterId];
|
||||
player->boundingBoxSize = gKartBoundingBoxSizeTable[player->characterId];
|
||||
player->unk_100 = gKartGravityTable[player->characterId];
|
||||
|
||||
switch (gModeSelection) {
|
||||
@@ -50,7 +50,7 @@ void spawn_player(Player *player, s8 playerIndex, f32 arg2, f32 arg3, f32 arg4,
|
||||
}
|
||||
|
||||
player->pos[0] = arg2;
|
||||
ret = func_802AE1C0(arg2, arg4 + 50.0f, arg3) + player->unk_070;
|
||||
ret = func_802AE1C0(arg2, arg4 + 50.0f, arg3) + player->boundingBoxSize;
|
||||
player->pos[2] = arg3;
|
||||
player->pos[1] = ret;
|
||||
player->rotX = arg2;
|
||||
|
||||
Reference in New Issue
Block a user