Puppyprint debugging is now correctly ommitted if debugging is set to 0

This commit is contained in:
Fazana committed 2021-08-25 19:33:56 +01:00
1 parent 6173fe01f2
commit c9bf910abf
13 files changed
+64 -64

No files matched your search

+2 -2
View File
@@ -976,7 +976,7 @@ void find_surface_on_ray_list(struct SurfaceNode *list, Vec3f orig, Vec3f dir, f
f32 length;
Vec3f chk_hit_pos;
f32 top, bottom;
#ifdef PUPPYPRINT
#if PUPPYPRINT_DEBUG
OSTime first = osGetTime();
#endif
@@ -1010,7 +1010,7 @@ void find_surface_on_ray_list(struct SurfaceNode *list, Vec3f orig, Vec3f dir, f
}
}
}
#ifdef PUPPYPRINT
#if PUPPYPRINT_DEBUG
collisionTime[perfIteration] += osGetTime()-first;
#endif
}