Skip to content

Commit

Permalink
SetTileAngle: Fix function signature
Browse files Browse the repository at this point in the history
angle is uint8 (already correct in GameLink.h in Mania).
  • Loading branch information
Mefiresu committed Sep 8, 2024
1 parent 51b898a commit 1220d91
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions RSDKv5/RSDK/Scene/Scene.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,14 +259,14 @@ inline int32 GetTileAngle(uint16 tile, uint8 cPlane, uint8 cMode)
case CMODE_RWALL: return tileInfo[cPlane & 1][tile & 0xFFF].rWallAngle;
}
}
inline void SetTileAngle(uint16 tile, uint8 cPlane, uint8 cMode, int32 angle)
inline void SetTileAngle(uint16 tile, uint8 cPlane, uint8 cMode, uint8 angle)
{
switch (cMode) {
default: break;
case CMODE_FLOOR: tileInfo[cPlane & 1][tile & 0xFFF].floorAngle = angle; break;
case CMODE_LWALL: tileInfo[cPlane & 1][tile & 0xFFF].lWallAngle = angle; break;
case CMODE_ROOF: tileInfo[cPlane & 1][tile & 0xFFF].roofAngle = angle; break;
case CMODE_RWALL: tileInfo[cPlane & 1][tile & 0xFFF].rWallAngle = angle; break;
case CMODE_FLOOR: tileInfo[cPlane & 1][tile & 0x3FF].floorAngle = angle; break;
case CMODE_LWALL: tileInfo[cPlane & 1][tile & 0x3FF].lWallAngle = angle; break;
case CMODE_ROOF: tileInfo[cPlane & 1][tile & 0x3FF].roofAngle = angle; break;
case CMODE_RWALL: tileInfo[cPlane & 1][tile & 0x3FF].rWallAngle = angle; break;
}
}

Expand Down

0 comments on commit 1220d91

Please sign in to comment.