mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2025-09-01 06:20:15 +02:00
Replaced memory with new.
Cleaned up gdrv, zdrv, render.
This commit is contained in:
parent
dc5915b4f8
commit
93de90b680
25 changed files with 220 additions and 439 deletions
|
@ -4,7 +4,6 @@
|
|||
|
||||
#include "control.h"
|
||||
#include "loader.h"
|
||||
#include "memory.h"
|
||||
#include "pb.h"
|
||||
#include "pinball.h"
|
||||
#include "render.h"
|
||||
|
@ -194,18 +193,18 @@ TPinballTable::TPinballTable(): TPinballComponent(nullptr, -1, false)
|
|||
|
||||
TPinballTable::~TPinballTable()
|
||||
{
|
||||
for (int scoreIndex = 0; scoreIndex < 4; scoreIndex++)
|
||||
for (auto& PlayerScore : PlayerScores)
|
||||
{
|
||||
memory::free(PlayerScores[scoreIndex].ScoreStruct);
|
||||
delete PlayerScore.ScoreStruct;
|
||||
}
|
||||
if (ScorePlayerNumber1)
|
||||
{
|
||||
memory::free(ScorePlayerNumber1);
|
||||
delete ScorePlayerNumber1;
|
||||
ScorePlayerNumber1 = nullptr;
|
||||
}
|
||||
if (ScoreBallcount)
|
||||
{
|
||||
memory::free(ScoreBallcount);
|
||||
delete ScoreBallcount;
|
||||
ScoreBallcount = nullptr;
|
||||
}
|
||||
delete LightGroup;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue