Fixed up dbc.cpp so now just use it everywhere. I next need to find a way to pass that to format automatically.
This commit is contained in:
parent
2baa044695
commit
a6d83db20c
10 changed files with 25 additions and 21 deletions
|
@ -140,10 +140,10 @@ void Raycaster::sprite_casting(sf::RenderTarget &target) {
|
|||
float x = float(draw_start_x + $screen_pos_x);
|
||||
float y = float(draw_start_y + $screen_pos_y);
|
||||
|
||||
if(x < $screen_pos_x) fmt::println("X < rayview left bounds");
|
||||
if(y < $screen_pos_y) fmt::println("Y < rayview top bounds");
|
||||
if(x >= SCREEN_WIDTH) fmt::println("OUT OF BOUNDS X");
|
||||
if(y >= $height) fmt::println("OUT OF BOUNDS Y");
|
||||
if(x < $screen_pos_x) dbc::log("X < rayview left bounds");
|
||||
if(y < $screen_pos_y) dbc::log("Y < rayview top bounds");
|
||||
if(x >= SCREEN_WIDTH) dbc::log("OUT OF BOUNDS X");
|
||||
if(y >= $height) dbc::log("OUT OF BOUNDS Y");
|
||||
|
||||
float sprite_scale_w = float(sprite_width) / float(texture_width);
|
||||
float sprite_scale_h = float(sprite_height) / float(texture_height);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue