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)
|
if (gKeyTrg & KEY_ESCAPE)
|
||||||
{
|
{
|
||||||
int escRet = Call_Escape();
|
switch (Call_Escape())
|
||||||
if (escRet == 0)
|
{
|
||||||
return 0;
|
case 0:
|
||||||
if (escRet == 2)
|
return 0;
|
||||||
return 1;
|
case 2:
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_GameFlags & 2)
|
if (g_GameFlags & 2)
|
||||||
MoveCampCursor();
|
MoveCampCursor();
|
||||||
|
|
||||||
int tscRet = TextScriptProc();
|
switch (TextScriptProc())
|
||||||
if (tscRet == 0)
|
{
|
||||||
return 0;
|
case 0:
|
||||||
if (tscRet == 2)
|
return 0;
|
||||||
return 2;
|
case 2:
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
|
|
||||||
PutBitmap4(&rcView, 0, 0, &rcView, 10);
|
PutBitmap4(&rcView, 0, 0, &rcView, 10);
|
||||||
PutCampObject();
|
PutCampObject();
|
||||||
|
|
24
src/Game.cpp
24
src/Game.cpp
|
@ -532,11 +532,13 @@ int ModeAction()
|
||||||
{
|
{
|
||||||
BackupSurface(10, &grcGame);
|
BackupSurface(10, &grcGame);
|
||||||
|
|
||||||
int campRet = CampLoop();
|
switch (CampLoop())
|
||||||
if (campRet == 0)
|
{
|
||||||
return 0;
|
case 0:
|
||||||
if (campRet == 2)
|
return 0;
|
||||||
return 1;
|
case 2:
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
gMC.cond &= ~1;
|
gMC.cond &= ~1;
|
||||||
}
|
}
|
||||||
|
@ -544,11 +546,13 @@ int ModeAction()
|
||||||
{
|
{
|
||||||
BackupSurface(10, &grcGame);
|
BackupSurface(10, &grcGame);
|
||||||
|
|
||||||
int miniRet = MiniMapLoop();
|
switch (MiniMapLoop())
|
||||||
if (miniRet == 0)
|
{
|
||||||
return 0;
|
case 0:
|
||||||
if (miniRet == 2)
|
return 0;
|
||||||
return 1;
|
case 2:
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -91,11 +91,13 @@ int MiniMapLoop()
|
||||||
|
|
||||||
if (gKey & KEY_ESCAPE)
|
if (gKey & KEY_ESCAPE)
|
||||||
{
|
{
|
||||||
int escRet = Call_Escape();
|
switch (Call_Escape())
|
||||||
if (escRet == 0)
|
{
|
||||||
return 0;
|
case 0:
|
||||||
if (escRet == 2)
|
return 0;
|
||||||
return 2;
|
case 2:
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PutBitmap4(&grcGame, 0, 0, &grcGame, 10);
|
PutBitmap4(&grcGame, 0, 0, &grcGame, 10);
|
||||||
|
@ -125,11 +127,13 @@ int MiniMapLoop()
|
||||||
|
|
||||||
if (gKey & KEY_ESCAPE)
|
if (gKey & KEY_ESCAPE)
|
||||||
{
|
{
|
||||||
int escRet = Call_Escape();
|
switch (Call_Escape())
|
||||||
if (escRet == 0)
|
{
|
||||||
return 0;
|
case 0:
|
||||||
if (escRet == 2)
|
return 0;
|
||||||
return 2;
|
case 2:
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PutBitmap4(&grcGame, 0, 0, &grcGame, 10);
|
PutBitmap4(&grcGame, 0, 0, &grcGame, 10);
|
||||||
|
@ -157,11 +161,13 @@ int MiniMapLoop()
|
||||||
|
|
||||||
if (gKey & KEY_ESCAPE)
|
if (gKey & KEY_ESCAPE)
|
||||||
{
|
{
|
||||||
int escRet = Call_Escape();
|
switch (Call_Escape())
|
||||||
if (escRet == 0)
|
{
|
||||||
return 0;
|
case 0:
|
||||||
if (escRet == 2)
|
return 0;
|
||||||
return 2;
|
case 2:
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PutBitmap4(&grcGame, 0, 0, &grcGame, 10);
|
PutBitmap4(&grcGame, 0, 0, &grcGame, 10);
|
||||||
|
|
Loading…
Add table
Reference in a new issue