[ScryMUD] SVN Commit Info r966 - trunk/mud/grrmud/server
svn-log at scrymud.net
svn-log at scrymud.net
Mon Feb 25 13:25:40 PST 2008
Author: kaj
Date: 2008-02-25 13:25:39 -0800 (Mon, 25 Feb 2008)
New Revision: 966
Modified:
trunk/mud/grrmud/server/critter.cc
trunk/mud/grrmud/server/translations.spec
Log:
Change to dropping coins code to use emote() instead of manually finding the audience in a room. This is a correction to revision 964.
Note: Getting gold coins still doesn't show a message (need to fix that).
Modified: trunk/mud/grrmud/server/critter.cc
===================================================================
--- trunk/mud/grrmud/server/critter.cc 2008-02-25 21:06:14 UTC (rev 965)
+++ trunk/mud/grrmud/server/critter.cc 2008-02-25 21:25:39 UTC (rev 966)
@@ -5645,7 +5645,6 @@
int critter::doDropCoins(int cnt) {
List<critter*> tmp_lst(getCurRoom()->getCrits());
Cell<critter*> cell(tmp_lst);
- critter* crit_ptr;
if (GOLD < cnt) {
show(CS_TOO_LITTLE_GOLD);
@@ -5661,19 +5660,12 @@
Sprintf(buf, cstr(CS_DROP_I_COINS, *this), cnt);
show(buf);
- //show message to everyone in the room
- while((crit_ptr = cell.next())) {
- if (crit_ptr != this) {
- Sprintf(buf, cstr(CS_DROPS_I_COINS, *crit_ptr),
- name_of_crit(*this, crit_ptr->SEE_BIT), cnt);
- buf.Cap();
- crit_ptr->show(buf);
- }
- }
+ Sprintf(buf, cstr(CS_DROPS_I_COINS, *this), cnt);
+ this->emote(buf);
object* gold;
- gold = obj_to_sobj(obj_list[config.goldCoinsObject], getCurRoom()->getInv(),
- getCurRoomNum());
+ gold = obj_to_sobj(obj_list[config.goldCoinsObject],
+ getCurRoom()->getInv(), getCurRoomNum());
obj_list[config.goldCoinsObject].incrementCurInGame();
Modified: trunk/mud/grrmud/server/translations.spec
===================================================================
--- trunk/mud/grrmud/server/translations.spec 2008-02-25 21:06:14 UTC (rev 965)
+++ trunk/mud/grrmud/server/translations.spec 2008-02-25 21:25:39 UTC (rev 966)
@@ -642,7 +642,7 @@
~
CS_DROPS_I_COINS
- eng "%S drops %i coins.\n"
+ eng "drops %i coins.\n"
~
CS_PUT_I_COINS
More information about the ScryMUD
mailing list