Merge branch 'master' into scripting
Conflicts: src/d_player.h src/g_doom/a_archvile.cpp src/thingdef/thingdef.h src/thingdef/thingdef_properties.cpp
This commit is contained in:
commit
bba092cc0b
44 changed files with 821 additions and 356 deletions
|
|
@ -865,7 +865,10 @@ static void ChangeSpy (int changespy)
|
|||
int pnum = consoleplayer;
|
||||
if (changespy != SPY_CANCEL)
|
||||
{
|
||||
pnum = int(players[consoleplayer].camera->player - players);
|
||||
player_t *player = players[consoleplayer].camera->player;
|
||||
// only use the camera as starting index if it's a valid player.
|
||||
if (player != NULL) pnum = int(players[consoleplayer].camera->player - players);
|
||||
|
||||
int step = (changespy == SPY_NEXT) ? 1 : -1;
|
||||
|
||||
do
|
||||
|
|
@ -1919,7 +1922,7 @@ FString G_BuildSaveName (const char *prefix, int slot)
|
|||
leader = Args->CheckValue ("-savedir");
|
||||
if (leader.IsEmpty())
|
||||
{
|
||||
#if !defined(unix) && !defined(__APPLE__)
|
||||
#if !defined(__unix__) && !defined(__APPLE__)
|
||||
if (Args->CheckParm ("-cdrom"))
|
||||
{
|
||||
leader = CDROM_DIR "/";
|
||||
|
|
@ -1931,7 +1934,7 @@ FString G_BuildSaveName (const char *prefix, int slot)
|
|||
}
|
||||
if (leader.IsEmpty())
|
||||
{
|
||||
#ifdef unix
|
||||
#ifdef __unix__
|
||||
leader = "~/" GAME_DIR;
|
||||
#elif defined(__APPLE__)
|
||||
char cpath[PATH_MAX];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue