Fix: use correct size parameter type in TileArea constructors (#11869)
(cherry picked from commit bf3fd6526b)
This commit is contained in:
committed by
Jonathan G Rennison
parent
63dc0a4f5e
commit
784951c942
@@ -29,7 +29,7 @@ struct OrthogonalTileArea {
|
|||||||
* @param w the width
|
* @param w the width
|
||||||
* @param h the height
|
* @param h the height
|
||||||
*/
|
*/
|
||||||
OrthogonalTileArea(TileIndex tile = INVALID_TILE, uint8_t w = 0, uint8_t h = 0) : tile(tile), w(w), h(h)
|
OrthogonalTileArea(TileIndex tile = INVALID_TILE, uint16_t w = 0, uint16_t h = 0) : tile(tile), w(w), h(h)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -87,7 +87,7 @@ struct DiagonalTileArea {
|
|||||||
* @param a The "x" extent.
|
* @param a The "x" extent.
|
||||||
* @param b The "y" estent.
|
* @param b The "y" estent.
|
||||||
*/
|
*/
|
||||||
DiagonalTileArea(TileIndex tile = INVALID_TILE, int8_t a = 0, int8_t b = 0) : tile(tile), a(a), b(b)
|
DiagonalTileArea(TileIndex tile = INVALID_TILE, int16_t a = 0, int16_t b = 0) : tile(tile), a(a), b(b)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user