- fixed: Handling of empty pickup messages was wrong. The old metadata code made a distinction between
an empty string and no string. To restore the original behavior the default initialization of the pickup message is now done in the DECORATE definition of Inventory. SVN r2244 (scripting)
This commit is contained in:
parent
604b5ef673
commit
61d75b7cae
2 changed files with 2 additions and 3 deletions
|
|
@ -1005,9 +1005,7 @@ void AInventory::DoPickupSpecial (AActor *toucher)
|
|||
|
||||
const char *AInventory::PickupMessage ()
|
||||
{
|
||||
FString message = GetClass()->PickupMessage;
|
||||
|
||||
return message.IsNotEmpty() ? message : "You got a pickup";
|
||||
return GetClass()->PickupMessage;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue