components/prboom/g_game.c
//
// G_SaveGame
// Called by the menu task.
// Description is a 24 byte text string
//
G_SaveGame
Called by the menu task.
Description is a 24 byte text string
G_SaveGame Called by the menu task . Description is a 24 byte text string
void G_SaveGame(int slot, char *description)
{
  strcpy(savedescription, description);
  if (demoplayback) {
    savegameslot = slot;
    G_DoSaveGame(true);
  }
  special_event = BT_SPECIAL | (BTS_SAVEGAME & BT_SPECIALMASK) |
    ((slot << BTS_SAVESHIFT) & BTS_SAVEMASK);
#ifdef HAVE_NET
  D_NetSendMisc(nm_savegamename, strlen(savedescription)+1, savedescription);
#endif
}
void G_SaveGame ( int slot , char * description ) { strcpy ( savedescription , description ) ; if ( demoplayback ) { savegameslot = slot ; G_DoSaveGame ( true ) ; } special_event = BT_SPECIAL | ( BTS_SAVEGAME & BT_SPECIALMASK ) | ( ( slot << BTS_SAVESHIFT ) & BTS_SAVEMASK ) ; #ifdef HAVE_NET D_NetSendMisc ( nm_savegamename , strlen ( savedescription ) + 1 , savedescription ) ; #endif }
G_SaveGame
Called by the menu task.
G_SaveGame Called by the menu task .
/* cph - We're doing a user-initiated save game while a demo is
     * running so, go outside normal mechanisms
     */ // CPhipps - store info in special_event