- Changed gameinfo_t and gameborder_t to be named structs instead of

typedef'ed anonymous structs.
- Fixed: P_AutoUseHealth() used autousemodes 0 and 1 instead of 1 and 2.
- Fixed: SBARINFO did not recognize 5:4 aspect ratio.
- Fixed: screenshot_dir was ignored.


SVN r1505 (trunk)
This commit is contained in:
Randy Heit 2009-03-26 02:06:14 +00:00
commit 854097ba03
5 changed files with 17 additions and 10 deletions

View file

@ -648,7 +648,7 @@ void M_ScreenShot (const char *filename)
{
size_t dirlen;
autoname = Args->CheckValue("-shotdir");
if (autoname == NULL)
if (autoname.IsEmpty())
{
autoname = screenshot_dir;
}
@ -671,6 +671,7 @@ void M_ScreenShot (const char *filename)
}
}
autoname = NicePath(autoname);
CreatePath(autoname);
if (!FindFreeName (autoname, writepcx ? "pcx" : "png"))
{
Printf ("M_ScreenShot: Delete some screenshots\n");
@ -682,7 +683,6 @@ void M_ScreenShot (const char *filename)
autoname = filename;
DefaultExtension (autoname, writepcx ? ".pcx" : ".png");
}
CreatePath(screenshot_dir);
// save the screenshot
const BYTE *buffer;