mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: fix typo in parameter name
After coordinate system conversion, this shouldb e X-Y.
This commit is contained in:
parent
652b5d7018
commit
851ae9c75f
@ -1078,12 +1078,12 @@ inline int rcGetDirOffsetY(int direction)
|
||||
|
||||
/// Gets the direction for the specified offset. One of x and y should be 0.
|
||||
/// @param[in] offsetX The x offset. [Limits: -1 <= value <= 1]
|
||||
/// @param[in] offsetZ The z offset. [Limits: -1 <= value <= 1]
|
||||
/// @param[in] offsetZ The Y offset. [Limits: -1 <= value <= 1]
|
||||
/// @return The direction that represents the offset.
|
||||
inline int rcGetDirForOffset(int offsetX, int offsetZ)
|
||||
inline int rcGetDirForOffset(int offsetX, int offsetY)
|
||||
{
|
||||
static const int dirs[5] = { 3, 0, -1, 2, 1 };
|
||||
return dirs[((offsetZ + 1) << 1) + offsetX];
|
||||
return dirs[((offsetY + 1) << 1) + offsetX];
|
||||
}
|
||||
|
||||
/// @}
|
||||
|
Loading…
x
Reference in New Issue
Block a user