aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/hdb/ai.h63
1 files changed, 2 insertions, 61 deletions
diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h
index 533d4310a9..aa47996516 100644
--- a/engines/hdb/ai.h
+++ b/engines/hdb/ai.h
@@ -498,115 +498,56 @@ struct AIEntity {
blinkFrames = 0;
for (int i = 0; i < kMaxAnimFrames; i++) {
- blinkGfx[i] = new Tile;
- }
-
- special1Frames = 0;
- for (int i = 0; i < kMaxAnimFrames; i++) {
- special1Gfx[i] = new Tile;
- }
-
- standdownFrames = 0;
- for (int i = 0; i < kMaxAnimFrames; i++) {
- standdownGfx[i] = new Tile;
- }
-
- standupFrames = 0;
- for (int i = 0; i < kMaxAnimFrames; i++) {
- standupGfx[i] = new Tile;
- }
-
- standleftFrames = 0;
- for (int i = 0; i < kMaxAnimFrames; i++) {
- standleftGfx[i] = new Tile;
- }
-
- standrightFrames = 0;
- for (int i = 0; i < kMaxAnimFrames; i++) {
- standrightGfx[i] = new Tile;
- }
-
- movedownFrames = 0;
- for (int i = 0; i < kMaxAnimFrames; i++) {
- movedownGfx[i] = new Tile;
- }
-
- moveupFrames = 0;
- for (int i = 0; i < kMaxAnimFrames; i++) {
- moveupGfx[i] = new Tile;
- }
-
- moveleftFrames = 0;
- for (int i = 0; i < kMaxAnimFrames; i++) {
- moveleftGfx[i] = new Tile;
- }
-
- moverightFrames = 0;
- for (int i = 0; i < kMaxAnimFrames; i++) {
- moverightGfx[i] = new Tile;
- }
- }
- ~AIEntity() {
- blinkFrames = 0;
- for (int i = 0; i < kMaxAnimFrames; i++) {
- delete blinkGfx[i];
blinkGfx[i] = NULL;
}
special1Frames = 0;
for (int i = 0; i < kMaxAnimFrames; i++) {
- delete special1Gfx[i];
special1Gfx[i] = NULL;
}
standdownFrames = 0;
for (int i = 0; i < kMaxAnimFrames; i++) {
- delete standdownGfx[i];
standdownGfx[i] = NULL;
}
standupFrames = 0;
for (int i = 0; i < kMaxAnimFrames; i++) {
- delete standupGfx[i];
standupGfx[i] = NULL;
}
standleftFrames = 0;
for (int i = 0; i < kMaxAnimFrames; i++) {
- delete standleftGfx[i];
standleftGfx[i] = NULL;
}
standrightFrames = 0;
for (int i = 0; i < kMaxAnimFrames; i++) {
- delete standrightGfx[i];
standrightGfx[i] = NULL;
}
movedownFrames = 0;
for (int i = 0; i < kMaxAnimFrames; i++) {
- delete movedownGfx[i];
movedownGfx[i] = NULL;
}
moveupFrames = 0;
for (int i = 0; i < kMaxAnimFrames; i++) {
- delete moveupGfx[i];
moveupGfx[i] = NULL;
}
moveleftFrames = 0;
for (int i = 0; i < kMaxAnimFrames; i++) {
- delete moveleftGfx[i];
moveleftGfx[i] = NULL;
}
moverightFrames = 0;
for (int i = 0; i < kMaxAnimFrames; i++) {
- delete moverightGfx[i];
moverightGfx[i] = NULL;
}
}
+ ~AIEntity() {
+ }
void save(Common::OutSaveFile *out);
void load(Common::InSaveFile *in);