* Adds two tiles together. * * @param from The origin. * @param diff The difference. * @return The new coordinates. */
| 53 | * @return The new coordinates. |
| 54 | */ |
| 55 | tile32 Tile_AddTileDiff(tile32 from, tile32 diff) |
| 56 | { |
| 57 | tile32 result; |
| 58 | |
| 59 | result.x = from.x + diff.x; |
| 60 | result.y = from.y + diff.y; |
| 61 | |
| 62 | return result; |
| 63 | } |
| 64 | |
| 65 | /** |
| 66 | * Centers the offset of the tile. |
no outgoing calls
no test coverage detected