[Scummvm-git-logs] scummvm master -> 2d65ca4bff0d65094e8a1d599f07f3475bc1c87e

dreammaster dreammaster at scummvm.org
Sat Feb 17 22:23:02 CET 2018


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
2d65ca4bff XEEN: Fix text for Guild location


Commit: 2d65ca4bff0d65094e8a1d599f07f3475bc1c87e
    https://github.com/scummvm/scummvm/commit/2d65ca4bff0d65094e8a1d599f07f3475bc1c87e
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2018-02-17T16:23:04-05:00

Commit Message:
XEEN: Fix text for Guild location

Changed paths:
    engines/xeen/locations.cpp


diff --git a/engines/xeen/locations.cpp b/engines/xeen/locations.cpp
index 3a48d58..67abbd7 100644
--- a/engines/xeen/locations.cpp
+++ b/engines/xeen/locations.cpp
@@ -499,8 +499,12 @@ GuildLocation::GuildLocation() : BaseLocation(GUILD) {
 }
 
 Common::String GuildLocation::createLocationText(Character &ch) {
-	return !ch.guildMember() ? Res.GUILD_NOT_MEMBER_TEXT :
+	Party &party = *g_vm->_party;
+
+	Common::String desc = !ch.guildMember() ? Res.GUILD_NOT_MEMBER_TEXT :
 		Common::String::format(Res.GUILD_TEXT, ch._name.c_str());
+	return Common::String::format(Res.GUILD_OPTIONS, desc.c_str(),
+		g_vm->printMil(party._gold).c_str());
 }
 
 Character *GuildLocation::doOptions(Character *c) {





More information about the Scummvm-git-logs mailing list