Rev 333 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 333 | Rev 550 | ||
---|---|---|---|
Line 1267... | Line 1267... | ||
1267 | sendsave = true; |
1267 | sendsave = true; |
1268 | } |
1268 | } |
Line 1269... | Line 1269... | ||
1269 | 1269 | ||
1270 | void G_DoSaveGame (void) |
1270 | void G_DoSaveGame (void) |
1271 | { |
1271 | { |
1272 | char name[100]; |
1272 | char name[128]; |
1273 | char name2[VERSIONSIZE]; |
1273 | char name2[VERSIONSIZE]; |
1274 | char* description; |
1274 | char* description; |
1275 | int length; |
1275 | int length; |
Line 1276... | Line 1276... | ||
1276 | int i; |
1276 | int i; |
1277 | 1277 | ||
Line 1278... | Line 1278... | ||
1278 | sprintf (name,"%d.dsg",savegameslot); |
1278 | sprintf (name,"doomsav%d.dsg",savegameslot); |
Line 1279... | Line 1279... | ||
1279 | description = savedescription; |
1279 | description = savedescription; |
Line 1304... | Line 1304... | ||
1304 | *save_p++ = 0x1d; // consistancy marker |
1304 | *save_p++ = 0x1d; // consistancy marker |
Line 1305... | Line 1305... | ||
1305 | 1305 | ||
1306 | length = save_p - savebuffer; |
1306 | length = save_p - savebuffer; |
1307 | if (length > SAVEGAMESIZE) |
1307 | if (length > SAVEGAMESIZE) |
- | 1308 | I_Error ("Savegame buffer overrun"); |
|
1308 | I_Error ("Savegame buffer overrun"); |
1309 | |
1309 | M_WriteFile (name, savebuffer, length); |
1310 | M_WriteFile (name, savebuffer, length); |
1310 | gameaction = ga_nothing; |
1311 | gameaction = ga_nothing; |
Line 1311... | Line 1312... | ||
1311 | savedescription[0] = 0; |
1312 | savedescription[0] = 0; |