1
0
Fork 0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2025-09-01 06:20:15 +02:00

winmain, memory, options v1.

This commit is contained in:
oz 2020-11-05 18:44:34 +03:00
parent 4157e79c83
commit 473ed6b9d9
17 changed files with 418 additions and 35 deletions

View file

@ -3,6 +3,7 @@
#include "loader.h"
#include "memory.h"
#include "pinball.h"
#include "TBall.h"
#include "TBlocker.h"
@ -196,7 +197,7 @@ TPinballTable::~TPinballTable()
{
if (*scorePtr)
{
free(*scorePtr);
memory::free(*scorePtr);
*scorePtr = nullptr;
}
scorePtr += 7;
@ -205,12 +206,12 @@ TPinballTable::~TPinballTable()
while (index);
if (ScorePlayerNumber1)
{
free(ScorePlayerNumber1);
memory::free(ScorePlayerNumber1);
ScorePlayerNumber1 = nullptr;
}
if (ScoreBallcount)
{
free(ScoreBallcount);
memory::free(ScoreBallcount);
ScoreBallcount = nullptr;
}
for (auto i = LightGroup; ; i = static_cast<TLightGroup*>(ListP1->Get(0)))