* Check whether a tile is a object tile of a specific type. * @param t Tile to test. * @param type Type to test. * @return True if type matches. */
| 34 | * @return True if type matches. |
| 35 | */ |
| 36 | inline bool IsObjectTypeTile(Tile t, ObjectType type) |
| 37 | { |
| 38 | return IsTileType(t, MP_OBJECT) && GetObjectType(t) == type; |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * Get the index of which object this tile is attached to. |
no test coverage detected