fix
This commit is contained in:
parent
cd9df8ec47
commit
e1cd4cf8d8
3 changed files with 49 additions and 35 deletions
|
@ -363,21 +363,25 @@ int CampLoop()
|
|||
|
||||
if (gKeyTrg & KEY_ESCAPE)
|
||||
{
|
||||
int escRet = Call_Escape();
|
||||
if (escRet == 0)
|
||||
switch (Call_Escape())
|
||||
{
|
||||
case 0:
|
||||
return 0;
|
||||
if (escRet == 2)
|
||||
return 1;
|
||||
case 2:
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
if (g_GameFlags & 2)
|
||||
MoveCampCursor();
|
||||
|
||||
int tscRet = TextScriptProc();
|
||||
if (tscRet == 0)
|
||||
switch (TextScriptProc())
|
||||
{
|
||||
case 0:
|
||||
return 0;
|
||||
if (tscRet == 2)
|
||||
case 2:
|
||||
return 2;
|
||||
}
|
||||
|
||||
PutBitmap4(&rcView, 0, 0, &rcView, 10);
|
||||
PutCampObject();
|
||||
|
|
16
src/Game.cpp
16
src/Game.cpp
|
@ -532,11 +532,13 @@ int ModeAction()
|
|||
{
|
||||
BackupSurface(10, &grcGame);
|
||||
|
||||
int campRet = CampLoop();
|
||||
if (campRet == 0)
|
||||
switch (CampLoop())
|
||||
{
|
||||
case 0:
|
||||
return 0;
|
||||
if (campRet == 2)
|
||||
case 2:
|
||||
return 1;
|
||||
}
|
||||
|
||||
gMC.cond &= ~1;
|
||||
}
|
||||
|
@ -544,13 +546,15 @@ int ModeAction()
|
|||
{
|
||||
BackupSurface(10, &grcGame);
|
||||
|
||||
int miniRet = MiniMapLoop();
|
||||
if (miniRet == 0)
|
||||
switch (MiniMapLoop())
|
||||
{
|
||||
case 0:
|
||||
return 0;
|
||||
if (miniRet == 2)
|
||||
case 2:
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (g_GameFlags & 2)
|
||||
{
|
||||
|
|
|
@ -91,12 +91,14 @@ int MiniMapLoop()
|
|||
|
||||
if (gKey & KEY_ESCAPE)
|
||||
{
|
||||
int escRet = Call_Escape();
|
||||
if (escRet == 0)
|
||||
switch (Call_Escape())
|
||||
{
|
||||
case 0:
|
||||
return 0;
|
||||
if (escRet == 2)
|
||||
case 2:
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
PutBitmap4(&grcGame, 0, 0, &grcGame, 10);
|
||||
|
||||
|
@ -125,12 +127,14 @@ int MiniMapLoop()
|
|||
|
||||
if (gKey & KEY_ESCAPE)
|
||||
{
|
||||
int escRet = Call_Escape();
|
||||
if (escRet == 0)
|
||||
switch (Call_Escape())
|
||||
{
|
||||
case 0:
|
||||
return 0;
|
||||
if (escRet == 2)
|
||||
case 2:
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
PutBitmap4(&grcGame, 0, 0, &grcGame, 10);
|
||||
CortBox(&rcView, 0);
|
||||
|
@ -157,12 +161,14 @@ int MiniMapLoop()
|
|||
|
||||
if (gKey & KEY_ESCAPE)
|
||||
{
|
||||
int escRet = Call_Escape();
|
||||
if (escRet == 0)
|
||||
switch (Call_Escape())
|
||||
{
|
||||
case 0:
|
||||
return 0;
|
||||
if (escRet == 2)
|
||||
case 2:
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
PutBitmap4(&grcGame, 0, 0, &grcGame, 10);
|
||||
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};
|
||||
|
|
Loading…
Add table
Reference in a new issue