This commit is contained in:
cuckydev 2019-01-29 17:47:34 -05:00
parent c59f9ef418
commit 4a104a527c
4 changed files with 48 additions and 9 deletions

View file

@ -21,11 +21,12 @@ CXXFLAGS += -DFIX_BUGS
endif
ifeq ($(WINDOWS), 1)
ifeq ($(CONSOLE), 1)
CXXFLAGS += -DWINDOWS
LIBS += -lkernel32
endif
ifeq ($(CONSOLE), 1)
CXXFLAGS += -mconsole
endif
CXXFLAGS += -DWINDOWS
LIBS += -lkernel32
endif
CXXFLAGS += `sdl2-config --cflags` `pkg-config freetype2 --cflags`

View file

@ -206,7 +206,7 @@ void PutMapDataVector(int fx, int fy)
//Animate the wind
static int count = 0;
count++;
count += 2;
for (int j = put_y; put_y + num_y > j; j++)
{

View file

@ -160,10 +160,7 @@ int MiniMapLoop()
}
PutBitmap4(&grcGame, 0, 0, &grcGame, 10);
rcView.left = 160 - f * gMap.width / 16;
rcView.right = f * gMap.width / 16 + 160;
rcView.top = 120 - f * gMap.length / 16;
rcView.bottom = f * gMap.length / 16 + 120;
rcView = {(WINDOW_WIDTH / 2) - f * gMap.width / 16, (WINDOW_HEIGHT / 2) - f * gMap.length / 16, (WINDOW_WIDTH / 2) + f * gMap.width / 16, (WINDOW_HEIGHT / 2) + f * gMap.length / 16};
PutMapName(true);
CortBox(&rcView, 0);

View file

@ -11,6 +11,7 @@
#include "MyChar.h"
#include "Fade.h"
#include "Stage.h"
#include "Frame.h"
#include "MycParam.h"
#include "Flags.h"
#include "Profile.h"
@ -839,6 +840,33 @@ int TextScriptProc()
else
gTS.p_read += 13;
}
else if (IS_COMMAND('S','S','S'))
{
x = GetTextScriptNo(gTS.p_read + 4);
SetNoise(1, x);
gTS.p_read += 8;
}
else if (IS_COMMAND('C','S','S'))
{
CutNoise();
gTS.p_read += 4;
}
else if (IS_COMMAND('S','P','S'))
{
SetNoise(2, x);
gTS.p_read += 8;
}
else if (IS_COMMAND('C','P','S'))
{
CutNoise();
gTS.p_read += 4;
}
else if (IS_COMMAND('Q','U','A'))
{
z = GetTextScriptNo(gTS.p_read + 4);
SetQuake(z);
gTS.p_read += 8;
}
else if (IS_COMMAND('F','A','I'))
{
z = GetTextScriptNo(gTS.p_read + 4);
@ -860,6 +888,19 @@ int TextScriptProc()
StartMapName();
gTS.p_read += 4;
}
else if (IS_COMMAND('F','O','M'))
{
z = GetTextScriptNo(gTS.p_read + 4);
SetFrameTargetMyChar(z);
gTS.p_read += 8;
}
else if (IS_COMMAND('F','O','N'))
{
x = GetTextScriptNo(gTS.p_read + 4);
y = GetTextScriptNo(gTS.p_read + 9);
SetFrameTargetNpChar(x, y);
gTS.p_read += 13;
}
else if (IS_COMMAND('S','O','U'))
{
z = GetTextScriptNo(gTS.p_read + 4);