Update of /cvsroot/wpdev/wolfpack
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12612
Modified Files:
config.cpp config.h wolfpack.vcproj
Log Message:
Implemented an anti-speedhack functionality.
Index: wolfpack.vcproj
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/wolfpack.vcproj,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** wolfpack.vcproj 20 Jul 2004 11:35:37 -0000 1.36
--- wolfpack.vcproj 22 Jul 2004 13:38:32 -0000 1.37
***************
*** 107,111 ****
<Tool
Name="VCLinkerTool"
! AdditionalDependencies="qt-mt331.lib ws2_32.lib comctl32.lib msvcrt.lib python23.lib wininet.lib imagehlp.lib"
OutputFile="../wolfpack.exe"
LinkIncremental="1"
--- 107,111 ----
<Tool
Name="VCLinkerTool"
! AdditionalDependencies="qt-mt331.lib ws2_32.lib comctl32.lib msvcrt.lib python23.lib wininet.lib imagehlp.lib libmysql.lib"
OutputFile="../wolfpack.exe"
LinkIncremental="1"
Index: config.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/config.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** config.h 18 Jul 2004 21:02:58 -0000 1.6
--- config.h 22 Jul 2004 13:38:32 -0000 1.7
***************
*** 75,78 ****
--- 75,81 ----
// loaded data
bool overwriteDefinitions_;
+ bool antiSpeedHack_;
+ unsigned int antiSpeedHackDelay_;
+ unsigned int antiSpeedHackDelayMounted_;
bool hashAccountPasswords_;
bool convertUnhashedPasswords_;
***************
*** 207,210 ****
--- 210,222 ----
float checkFollowTime() const;
float checkTamedTime() const;
+ bool antiSpeedHack() const {
+ return antiSpeedHack_;
+ }
+ unsigned int antiSpeedHackDelay() const {
+ return antiSpeedHackDelay_;
+ }
+ unsigned int antiSpeedHackDelayMounted() const {
+ return antiSpeedHackDelayMounted_;
+ }
int niceLevel() const;
unsigned int itemDecayTime() const;
Index: config.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/config.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** config.cpp 18 Jul 2004 21:02:58 -0000 1.7
--- config.cpp 22 Jul 2004 13:38:32 -0000 1.8
***************
*** 165,168 ****
--- 165,171 ----
overwriteDefinitions_ = getBool( "General", "Overwrite Definitions", false, true );
dontStackSpawnedObjects_ = getBool("General", "Don't Stack Spawned Objects", true, true);
+ antiSpeedHack_ = getBool("General", "Anti Speed Hack", true, true);
+ antiSpeedHackDelay_ = getNumber("General", "Anti Speed Hack Delay", 175, true);
+ antiSpeedHackDelayMounted_ = getNumber("General", "Anti Speed Hack Delay Mounted", 75, true);
saveInterval_ = getNumber( "General", "Save Interval", 900, true );
|