Update of /cvsroot/wpdev/wolfpack
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27900
Modified Files:
serverconfig.cpp serverconfig.h walking.cpp
Log Message:
added option to limit number of chars an account can hold( bugID: 152 )
Index: serverconfig.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/serverconfig.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** serverconfig.h 4 Aug 2004 23:17:36 -0000 1.1
--- serverconfig.h 6 Aug 2004 22:27:02 -0000 1.2
***************
*** 144,147 ****
--- 144,148 ----
double tamedNpcMoveTime_;
unsigned int showNpcTitles_;
+ unsigned char maxCharsPerAccount_;
// AI
***************
*** 273,276 ****
--- 274,278 ----
QString accountsUsername() const;
QString accountsName() const;
+ unsigned int maxCharsPerAccount() const;
// Combat
***************
*** 734,737 ****
--- 736,744 ----
}
+ inline unsigned int cConfig::maxCharsPerAccount() const
+ {
+ return (unsigned int) maxCharsPerAccount_;
+ }
+
typedef SingletonHolder<cConfig> Config;
Index: walking.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/walking.cpp,v
retrieving revision 1.130
retrieving revision 1.131
diff -C2 -d -r1.130 -r1.131
*** walking.cpp 4 Aug 2004 23:17:37 -0000 1.130
--- walking.cpp 6 Aug 2004 22:27:02 -0000 1.131
***************
*** 615,620 ****
void cMovement::checkRunning( cUOSocket* socket, P_CHAR pChar, Q_UINT8 dir )
{
- signed short tempshort;
-
// Don't regenerate stamina while running
pChar->setRegenStaminaTime( Server::instance()->time() + floor( pChar->getStaminaRate() * 1000 ) );
--- 615,618 ----
Index: serverconfig.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/serverconfig.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** serverconfig.cpp 4 Aug 2004 23:17:36 -0000 1.1
--- serverconfig.cpp 6 Aug 2004 22:27:02 -0000 1.2
***************
*** 101,104 ****
--- 101,105 ----
hashAccountPasswords_ = getBool( "Accounts", "Use MD5 Hashed Passwords", false, true );
convertUnhashedPasswords_ = getBool( "Accounts", "Automatically Hash Loaded Passwords", false, true );
+ maxCharsPerAccount_ = QMIN(6, getNumber("Accounts", "Maximum Number of Characters", 6, true));
// AI
***************
*** 356,360 ****
static stGroupDoc group_doc[] =
{
! {"AI", "This group configures the NPC AI."}, {"Accounts", "This group configures the account management."}, {"Database", "This group configures access to the worldsave database."}, {0, 0}
};
--- 357,364 ----
static stGroupDoc group_doc[] =
{
! {"AI", "This group configures the NPC AI."},
! {"Accounts", "This group configures the account management."},
! {"Database", "This group configures access to the worldsave database."},
! {0, 0}
};
***************
*** 385,389 ****
static stEntryDoc entry_doc[] =
{
! {"Accounts", "Database Driver", "Possible values are: sqlite, mysql"}, {0, 0, 0}
};
--- 389,399 ----
static stEntryDoc entry_doc[] =
{
! {"Accounts", "Auto Create", "If active login attempts with non-existing login names will create a new account automatically\n"
! "This is very usefull for new shards without account policy\n"},
! {"Accounts", "Database Driver", "Possible values are: sqlite, mysql"},
! {"Accounts", "Maximum Number of Characters", "Should not be more than 6, due to client restrictions"},
! {"Accounts", "Use MD5 Hashed Passwords", "This will store hashed passwords, increasing password security."},
! {"Accounts", "Automatically Hash Loaded Passwords", "If active, will convert older plain text passwords into MD5 hash"},
! {0, 0, 0}
};
|