summaryrefslogtreecommitdiff
path: root/src/gui/login.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-09-13 17:23:45 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-09-13 17:23:45 +0000
commita4ebc80ec3aa5d5b7faf51ad878d11bd4a8915e9 (patch)
treece8b3a08278fe4d6c51f8dad128f0e7051d53168 /src/gui/login.cpp
parente7c5d55d6286ca3c535248c76649863b03fb208b (diff)
downloadmana-a4ebc80ec3aa5d5b7faf51ad878d11bd4a8915e9.tar.gz
mana-a4ebc80ec3aa5d5b7faf51ad878d11bd4a8915e9.tar.bz2
mana-a4ebc80ec3aa5d5b7faf51ad878d11bd4a8915e9.tar.xz
mana-a4ebc80ec3aa5d5b7faf51ad878d11bd4a8915e9.zip
Removed some globals.
Diffstat (limited to 'src/gui/login.cpp')
-rw-r--r--src/gui/login.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/login.cpp b/src/gui/login.cpp
index a8ecf6a2..9913eb25 100644
--- a/src/gui/login.cpp
+++ b/src/gui/login.cpp
@@ -294,8 +294,6 @@ void loginInputHandler(SDL_KeyboardEvent *keyEvent)
}
int attemptLogin(const std::string& user, const std::string& pass) {
- username = user;
- password = pass;
int ret;
// Connect to login server
@@ -315,8 +313,8 @@ int attemptLogin(const std::string& user, const std::string& pass) {
WFIFOL(2) = 0;
- memcpy(WFIFOP(6), username.c_str(), LEN_MAX_USERNAME - 1);
- memcpy(WFIFOP(30), password.c_str(), LEN_MAX_PASSWORD - 1);
+ memcpy(WFIFOP(6), user.c_str(), LEN_MAX_USERNAME - 1);
+ memcpy(WFIFOP(30), pass.c_str(), LEN_MAX_PASSWORD - 1);
WFIFOB(54) = 0;
WFIFOSET(55);