summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorKess Vargavind <vargavind@gmail.com>2009-02-12 08:48:11 +0100
committerJared Adams <jaxad0127@gmail.com>2009-02-12 06:29:34 +0000
commit1a5af5210f640d900efac540d781a80c90959c22 (patch)
tree207b45bbee0ee4d708ff38f867843ec9068d013b /src/net
parentf01f76284b3c7339a1ae4d13c1d74a48f78a3f12 (diff)
downloadmana-client-1a5af5210f640d900efac540d781a80c90959c22.tar.gz
mana-client-1a5af5210f640d900efac540d781a80c90959c22.tar.bz2
mana-client-1a5af5210f640d900efac540d781a80c90959c22.tar.xz
mana-client-1a5af5210f640d900efac540d781a80c90959c22.zip
Fix some spelling and whitespace
Also a few whitespace and spelling fixes.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/loginhandler.cpp12
-rw-r--r--src/net/playerhandler.cpp54
2 files changed, 41 insertions, 25 deletions
diff --git a/src/net/loginhandler.cpp b/src/net/loginhandler.cpp
index 41314d16..4fd0f373 100644
--- a/src/net/loginhandler.cpp
+++ b/src/net/loginhandler.cpp
@@ -80,7 +80,7 @@ void LoginHandler::handleMessage(MessageIn *msg)
mUpdateHost = msg->readString(len);
logger->log("Received update host \"%s\" from login server",
- mUpdateHost.c_str());
+ mUpdateHost.c_str());
break;
case 0x0069:
@@ -135,14 +135,14 @@ void LoginHandler::handleMessage(MessageIn *msg)
break;
case 4:
- errorMessage = _("You have been permanently banned from the"
- " game. Please contact the GM Team");
+ errorMessage = _("You have been permanently banned from "
+ "the game. Please contact the GM Team.");
break;
case 6:
errorMessage = strprintf(_("You have been temporarily "
- "banned from the game until %s.\n"
- " Please contact the GM team via "
- "the forums"),
+ "banned from the game until "
+ "%s.\n Please contact the GM "
+ "team via the forums."),
msg->readString(20).c_str());
break;
case 9:
diff --git a/src/net/playerhandler.cpp b/src/net/playerhandler.cpp
index 470a4aa4..cfdfbe63 100644
--- a/src/net/playerhandler.cpp
+++ b/src/net/playerhandler.cpp
@@ -51,8 +51,9 @@ extern BuyDialog *buyDialog;
extern SellDialog *sellDialog;
extern Window *buySellDialog;
-static const int MAP_TELEPORT_SCROLL_DISTANCE = 8; /* Max. distance we are willing to scroll after a teleport;
- * everything beyond will reset the port hard. */
+// Max. distance we are willing to scroll after a teleport;
+// everything beyond will reset the port hard.
+static const int MAP_TELEPORT_SCROLL_DISTANCE = 8;
/**
* Listener used for handling the overweigth message.
@@ -157,7 +158,9 @@ void PlayerHandler::handleMessage(MessageIn *msg)
player_node->mX = x;
player_node->mY = y;
- logger->log("Adjust scrolling by %d:%d", (int)scrollOffsetX, (int)scrollOffsetY);
+ logger->log("Adjust scrolling by %d:%d",
+ (int)scrollOffsetX,
+ (int)scrollOffsetY);
viewport->scrollBy(scrollOffsetX, scrollOffsetY);
}
@@ -191,7 +194,7 @@ void PlayerHandler::handleMessage(MessageIn *msg)
player_node->mMaxWeight / 2)
{
weightNotice = new OkDialog(_("Message"),
- _("You are carrying more then "
+ _("You are carrying more than "
"half your weight. You are "
"unable to regain health."));
weightNotice->addActionListener(
@@ -211,37 +214,50 @@ void PlayerHandler::handleMessage(MessageIn *msg)
case 0x0037: player_node->mJobLevel = value; break;
}
- if (player_node->mHp == 0 && deathNotice == NULL)
+ if (player_node->mHp == 0 && !deathNotice)
{
static char const *const deadMsg[] =
{
_("You are dead."),
- _("We regret to inform you that your character was killed in battle."),
+ _("We regret to inform you that your character was "
+ "killed in battle."),
_("You are not that alive anymore."),
- _("The cold hands of the grim reaper are grabbing for your soul."),
+ _("The cold hands of the grim reaper are grabbing for "
+ "your soul."),
_("Game Over!"),
_("Insert coin to continue"),
- _("No, kids. Your character did not really die. It... err... went to a better place."),
- _("Your plan of breaking your enemies weapon by bashing it with your throat failed."),
+ _("No, kids. Your character did not really die. It... "
+ "err... went to a better place."),
+ _("Your plan of breaking your enemies weapon by "
+ "bashing it with your throat failed."),
_("I guess this did not run too well."),
- _("Do you want your possessions identified?"), // Nethack reference
- _("Sadly, no trace of you was ever found..."), // Secret of Mana reference
- _("Annihilated."), // Final Fantasy VI reference
- _("Looks like you got your head handed to you."), //Earthbound reference
- _("You screwed up again, dump your body down the tubes and get you another one."), // Leisure Suit Larry 1 Reference
- _("You're not dead yet. You're just resting."), // Monty Python reference from a couple of skits
- _("You are no more."), // Monty Python reference from the dead parrot sketch starting now
+ // NetHack reference:
+ _("Do you want your possessions identified?"),
+ // Secret of Mana reference:
+ _("Sadly, no trace of you was ever found..."),
+ // Final Fantasy VI reference:
+ _("Annihilated."),
+ // Earthbound reference:
+ _("Looks like you got your head handed to you."),
+ // Leisure Suit Larry 1 reference:
+ _("You screwed up again, dump your body down the tubes "
+ "and get you another one."),
+ // Monty Python references (Dead Parrot sketch mostly):
+ _("You're not dead yet. You're just resting."),
+ _("You are no more."),
_("You have ceased to be."),
_("You've expired and gone to meet your maker."),
_("You're a stiff."),
_("Bereft of life, you rest in peace."),
- _("If you weren't so animated, you'd be pushing up the daisies."),
+ _("If you weren't so animated, you'd be pushing up the "
+ "daisies."),
_("Your metabolic processes are now history."),
_("You're off the twig."),
_("You've kicked the bucket."),
- _("You've shuffled off your mortal coil, run down the curtain and joined the bleedin' choir invisibile."),
+ _("You've shuffled off your mortal coil, run down the "
+ "curtain and joined the bleedin' choir invisibile."),
_("You are an ex-player."),
- _("You're pining for the fjords.") // Monty Python reference from the dead parrot sketch
+ _("You're pining for the fjords.")
};
std::string message(deadMsg[rand()%27]);