mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 14:51:46 +00:00
Fixed: StartConversation didn't check for a valid target.
SVN r165 (trunk)
This commit is contained in:
parent
15681d0588
commit
9e5d7c3289
2 changed files with 8 additions and 2 deletions
|
@ -563,7 +563,7 @@ FString FGameConfigFile::GetConfigPath (bool tryProg)
|
|||
if (path.IsEmpty())
|
||||
{
|
||||
if (Args.CheckParm ("-cdrom"))
|
||||
return copystring ("c:\\zdoomdat\\zdoom.ini");
|
||||
return "c:\\zdoomdat\\zdoom.ini";
|
||||
|
||||
path = progdir;
|
||||
path += "zdoom.ini";
|
||||
|
@ -611,7 +611,7 @@ void FGameConfigFile::AddAutoexec (DArgs *list, const char *game)
|
|||
#ifndef unix
|
||||
if (Args.CheckParm ("-cdrom"))
|
||||
{
|
||||
path = copystring ("c:\\zdoomdat\\autoexec.cfg");
|
||||
path = "c:\\zdoomdat\\autoexec.cfg";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -2638,6 +2638,12 @@ FUNC(LS_StartConversation)
|
|||
|
||||
AActor *target = iterator.Next();
|
||||
|
||||
// Nothing to talk to
|
||||
if (target == NULL)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Only living players are allowed to start conversations
|
||||
if (it == NULL || it->player == NULL || it->player->mo != it || it->health<=0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue