summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2Balloon.cpp
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-07-01 02:43:29 +0100
committerAsh Wolf <ninji@wuffs.org>2023-07-01 02:43:29 +0100
commit5c6a48b2ff362a70416a6a00fda7d06e0f276f2d (patch)
tree62cf542c68d91aa6f7a4e3bfa9eddca4ab352970 /src/T2DLL/T2Balloon.cpp
parentc0c336500955a23e344651e5412c9d9d441ef4ee (diff)
downloadt2win-5c6a48b2ff362a70416a6a00fda7d06e0f276f2d.tar.gz
t2win-5c6a48b2ff362a70416a6a00fda7d06e0f276f2d.zip
i am in hell
Diffstat (limited to 'src/T2DLL/T2Balloon.cpp')
-rw-r--r--src/T2DLL/T2Balloon.cpp10
1 files changed, 8 insertions, 2 deletions
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;