#include "tape.h"
#include "joystick.h"
#include "cartoons.h"
+#include "network.h"
#ifdef MSDOS
extern unsigned char get_ascii(KeySym);
{
game_status = LEVELED;
if (leveldir[leveldir_nr].readonly)
- AreYouSure("This level is read only !",AYS_CONFIRM);
+ Request("This level is read only !",REQ_CONFIRM);
DrawLevelEd();
}
else if (y==7)
}
else if (y==8)
{
- if (autorecord_on)
- TapeStartRecording();
+ if (standalone)
+ {
+ if (autorecord_on)
+ TapeStartRecording();
- game_status = PLAYING;
- InitGame();
+ game_status = PLAYING;
+ InitGame();
+ }
+ else
+ SendToServer_StartPlaying();
}
else if (y==9)
{
else if (y==10)
{
SavePlayerInfo(PLAYER_LEVEL);
- if (AreYouSure("Do you really want to quit ?",AYS_ASK|AYS_STAY_CLOSED))
+ if (Request("Do you really want to quit ?",REQ_ASK|REQ_STAY_CLOSED))
game_status = EXITGAME;
}
DrawSetupScreen();
}
-void HandleGameActions(int player_action)
+void HandleGameActions(byte player_action)
{
if (game_status != PLAYING)
return;
{
LoadLevelTape(level_nr);
if (TAPE_IS_EMPTY(tape))
- AreYouSure("No tape for this level !",AYS_CONFIRM);
+ Request("No tape for this level !",REQ_CONFIRM);
}
else
{
break;
}
- if (AreYouSure("Do you really want to quit the game ?",
- AYS_ASK | AYS_STAY_CLOSED))
+ if (Request("Do you really want to quit the game ?",
+ REQ_ASK | REQ_STAY_CLOSED))
{
game_status = MAINMENU;
DrawMainMenu();