1
0
Fork 0

Codefix: Use this->tile for member variable of Tile. (#13221)

pull/13224/head
Peter Nelson 2025-01-01 16:41:13 +00:00 committed by GitHub
parent a22e357911
commit 31fd71e1ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 12 deletions

View File

@ -72,12 +72,12 @@ public:
/** /**
* Implicit conversion to the TileIndex. * Implicit conversion to the TileIndex.
*/ */
debug_inline constexpr operator TileIndex() const { return tile; } debug_inline constexpr operator TileIndex() const { return this->tile; }
/** /**
* Implicit conversion to the uint for bounds checking. * Implicit conversion to the uint for bounds checking.
*/ */
debug_inline constexpr operator uint() const { return tile.base(); } debug_inline constexpr operator uint() const { return this->tile.base(); }
/** /**
* The type (bits 4..7), bridges (2..3), rainforest/desert (0..1) * The type (bits 4..7), bridges (2..3), rainforest/desert (0..1)
@ -88,7 +88,7 @@ public:
*/ */
debug_inline uint8_t &type() debug_inline uint8_t &type()
{ {
return base_tiles[tile.base()].type; return base_tiles[this->tile.base()].type;
} }
/** /**
@ -100,7 +100,7 @@ public:
*/ */
debug_inline uint8_t &height() debug_inline uint8_t &height()
{ {
return base_tiles[tile.base()].height; return base_tiles[this->tile.base()].height;
} }
/** /**
@ -112,7 +112,7 @@ public:
*/ */
debug_inline uint8_t &m1() debug_inline uint8_t &m1()
{ {
return base_tiles[tile.base()].m1; return base_tiles[this->tile.base()].m1;
} }
/** /**
@ -124,7 +124,7 @@ public:
*/ */
debug_inline uint16_t &m2() debug_inline uint16_t &m2()
{ {
return base_tiles[tile.base()].m2; return base_tiles[this->tile.base()].m2;
} }
/** /**
@ -136,7 +136,7 @@ public:
*/ */
debug_inline uint8_t &m3() debug_inline uint8_t &m3()
{ {
return base_tiles[tile.base()].m3; return base_tiles[this->tile.base()].m3;
} }
/** /**
@ -148,7 +148,7 @@ public:
*/ */
debug_inline uint8_t &m4() debug_inline uint8_t &m4()
{ {
return base_tiles[tile.base()].m4; return base_tiles[this->tile.base()].m4;
} }
/** /**
@ -160,7 +160,7 @@ public:
*/ */
debug_inline uint8_t &m5() debug_inline uint8_t &m5()
{ {
return base_tiles[tile.base()].m5; return base_tiles[this->tile.base()].m5;
} }
/** /**
@ -172,7 +172,7 @@ public:
*/ */
debug_inline uint8_t &m6() debug_inline uint8_t &m6()
{ {
return extended_tiles[tile.base()].m6; return extended_tiles[this->tile.base()].m6;
} }
/** /**
@ -184,7 +184,7 @@ public:
*/ */
debug_inline uint8_t &m7() debug_inline uint8_t &m7()
{ {
return extended_tiles[tile.base()].m7; return extended_tiles[this->tile.base()].m7;
} }
/** /**
@ -196,7 +196,7 @@ public:
*/ */
debug_inline uint16_t &m8() debug_inline uint16_t &m8()
{ {
return extended_tiles[tile.base()].m8; return extended_tiles[this->tile.base()].m8;
} }
}; };