1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Replace _IRR_DEBUG_BREAK_IF with assertions

This commit is contained in:
Lars Mueller 2025-04-04 01:26:02 +02:00 committed by Lars Müller
parent 2f464843cb
commit 5f1ff453c9
22 changed files with 96 additions and 91 deletions

View file

@ -3,6 +3,7 @@
// For conditions of distribution and use, see copyright notice in irrlicht.h
#include <algorithm>
#include <cassert>
#include "CSceneManager.h"
#include "IVideoDriver.h"
@ -305,7 +306,7 @@ void CSceneManager::render()
//! returns the axis aligned bounding box of this node
const core::aabbox3d<f32> &CSceneManager::getBoundingBox() const
{
_IRR_DEBUG_BREAK_IF(true) // Bounding Box of Scene Manager should never be used.
assert(false); // Bounding Box of Scene Manager should never be used.
static const core::aabbox3d<f32> dummy{{0.0f, 0.0f, 0.0f}};
return dummy;