File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -179,13 +179,13 @@ impl Map {
179179 ) ;
180180
181181 let start = Vec2 :: new (
182- center. x ( ) - tile_width / 2.0 ,
183- center. y ( ) - tile_height / 2.0 ,
182+ center. x ( ) ,
183+ center. y ( ) - tile_height,
184184 ) ;
185185
186186 let end = Vec2 :: new (
187- center. x ( ) + tile_width / 2.0 ,
188- center. y ( ) + tile_height / 2.0 ,
187+ center. x ( ) + tile_width,
188+ center. y ( ) ,
189189 ) ;
190190
191191 ( start. x ( ) , end. x ( ) , start. y ( ) , end. y ( ) )
@@ -199,12 +199,12 @@ impl Map {
199199
200200 let start = Vec2 :: new (
201201 center. x ( ) - tile_width / 2.0 ,
202- center. y ( ) - tile_height / 2.0 ,
202+ center. y ( ) - tile_height,
203203 ) ;
204204
205205 let end = Vec2 :: new (
206206 center. x ( ) + tile_width / 2.0 ,
207- center. y ( ) + tile_height / 2.0 ,
207+ center. y ( ) ,
208208 ) ;
209209
210210 ( start. x ( ) , end. x ( ) , start. y ( ) , end. y ( ) )
You can’t perform that action at this time.
0 commit comments