equal
deleted
inserted
replaced
102 uint x; |
102 uint x; |
103 uint y; |
103 uint y; |
104 |
104 |
105 /* we are going the aim for the x coordinate of the closest corner |
105 /* we are going the aim for the x coordinate of the closest corner |
106 * but if we are between those coordinates, we will aim for our own x coordinate */ |
106 * but if we are between those coordinates, we will aim for our own x coordinate */ |
107 x = clamp(TileX(tile), minx, maxx); |
107 x = Clamp(TileX(tile), minx, maxx); |
108 |
108 |
109 /* same for y coordinate, see above comment */ |
109 /* same for y coordinate, see above comment */ |
110 y = clamp(TileY(tile), miny, maxy); |
110 y = Clamp(TileY(tile), miny, maxy); |
111 |
111 |
112 /* return the tile of our target coordinates */ |
112 /* return the tile of our target coordinates */ |
113 return TileXY(x, y); |
113 return TileXY(x, y); |
114 } |
114 } |
115 |
115 |