Replaced GlobalAlloc with malloc.

WaveMix keeps GlobalAlloc for authenticity.
Fixed float to double casts.
Some cleanup.
This commit is contained in:
Muzychenko Andrey
2021-02-18 12:53:25 +03:00
parent 55984fbb08
commit 98f234fce3
33 changed files with 171 additions and 174 deletions

View File

@@ -121,7 +121,7 @@ void TTextBox::Display(char* text, float time)
{
if (Timer && Timer != -1)
timer::kill(Timer);
if (time == -1.0)
if (time == -1.0f)
Timer = -1;
else
Timer = timer::set(time, this, TimerExpired);
@@ -172,7 +172,7 @@ void TTextBox::Draw()
bool display = false;
while (Message1)
{
if (Message1->Time == -1.0)
if (Message1->Time == -1.0f)
{
if (!Message1->NextMessage)
{