From 5c6a48b2ff362a70416a6a00fda7d06e0f276f2d Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Sat, 1 Jul 2023 02:43:29 +0100 Subject: i am in hell --- src/T2DLL/T2Balloon.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/T2DLL/T2Balloon.cpp') diff --git a/src/T2DLL/T2Balloon.cpp b/src/T2DLL/T2Balloon.cpp index d8815da..2fe2ef0 100644 --- a/src/T2DLL/T2Balloon.cpp +++ b/src/T2DLL/T2Balloon.cpp @@ -8,6 +8,12 @@ #include "T2WorldDef.h" #include "UT2Coordinate.h" +#ifdef _DEBUG +#define new DEBUG_NEW +#undef THIS_FILE +static char THIS_FILE[] = __FILE__; +#endif + T2Balloon::T2Balloon() { mImage = NULL; mImageObj = NULL; @@ -191,7 +197,7 @@ void T2Balloon::Show(int inX, int inY, const CString& inText, BOOL inDoPause) { rect8.right = ((rect5.Width() + 3) / 4) * 4; #line 201 - mImage = DEBUG_NEW T2BitImage(rect8); + mImage = new T2BitImage(rect8); mImage->Clear(0); CPalette *thePalette = GetCurrentT2TowerDoc()->towerDoc_vf170()->GetPalette(); @@ -226,7 +232,7 @@ void T2Balloon::Show(int inX, int inY, const CString& inText, BOOL inDoPause) { DeleteObject(dib); #line 233 - mImageObj = DEBUG_NEW T2ImageObj; + mImageObj = new T2ImageObj; mImageObj->AddObject("BAL", 0, *mImage, rect8, true, false); T2Sprite *theSprite = &GetCurrentT2TowerDoc()->mSprite; -- cgit v1.2.3