summaryrefslogtreecommitdiff
path: root/src/utils
AgeCommit message (Collapse)AuthorFilesLines
2009-12-06Moved rectangle intersection to the Rectangle classThorbjørn Lindeijer2-35/+39
Also a bit of pointless cleanup in the math utils.
2009-10-09Synced the protocol file with client in protocol.h, letting other defines in ↵Bertram2-2/+0
defines.h, and removing some overheading along the way.
2009-10-03Limit login attempt frequency based on IP addressThorbjørn Lindeijer1-1/+1
The previous method was broken because it set the "last time" to the current time when the client connected. So login would fail when the username and password were sent within a second from connecting, which is not desirable. If I'd have fixed this by setting the "last time" to login time minus one second, then an attacker would just need to reconnect for each login attempt. So now it uses an IP address based approach, where each IP can only try to log in once per second.
2009-05-24Fixed compilation problem with GCC 4.4Bjørn Lindeijer2-5/+9
Fix ported from the client.
2009-04-26Standardize on the position of the const keywordBjørn Lindeijer6-23/+30
Same as for the client.
2009-04-26Merged MovingObject into the Being classBjørn Lindeijer1-1/+1
Also renamed Object to Actor, to make it sound a little less generic. Cleans up a bit the rather big hierarchy of different object types we have.
2009-03-10Fixes for some compile warningsBjørn Lindeijer1-3/+5
Mostly comparisons between signed and unsigned integers
2009-02-24Made a lot of hard-coded values configuration optionsPhilipp Sehmisch1-2/+2
2008-12-28Removed unused md5sum calculation codeBjørn Lindeijer2-199/+0
Reported by seeseekey
2008-11-16Got rid of CVS/Subversion $Id$ markersBjørn Lindeijer30-61/+0
2008-11-05Use a string util for converting strings toDavid Athay2-0/+13
integers, as per Bjorns suggestion.
2008-10-31Changed command system to handle commands without template magic.David Athay2-0/+14
2008-10-23Fixed crash introduced in utils::toupperBjørn Lindeijer1-1/+1
2008-10-23Fixed compiler warnings, including a forgotten initialization of an item'sBjørn Lindeijer2-7/+8
script pointer.
2008-10-23ignore case in map object types (by Chuck Miller)Roderic Morris2-0/+62
2008-05-22Fixed compilation with GCC 4.3 (patch by rodge).Bjørn Lindeijer2-0/+2
2008-04-23Switched to alternative SHA-256 implementation from InspIRCd.Bjørn Lindeijer6-1024/+419
2008-04-22Fixed some small issues.Bjørn Lindeijer1-0/+1
2008-04-21Removed our copyright header since these files are not copyright by us.Bjørn Lindeijer2-52/+0
2008-04-21Added password and email encryption server-side using SHA256.Yohann Ferreira4-0/+1075
2008-04-20Fix a possible memleak in inflateMemory if the stream fails to uncompress ↵Dennis Friis1-0/+4
cleanly.
2008-02-21Moved the functions which translate strings into enumerations from the XML ↵Philipp Sehmisch2-72/+0
library into the item and monstermanager modules and reimplemented them using std::maps.
2008-02-20Implemented different monster attacks read from monsters.xmlPhilipp Sehmisch2-0/+95
2007-11-19Removed useless win32 implementation of gettimeofday.Eugenio Favalli3-119/+1
2007-11-13Trimed script filenames from spaces.Guillaume Melquiond1-0/+53
2007-10-27Made it compile with GCC 4.3Guillaume Melquiond2-1/+5
2007-09-22Cleaned both configuration and resource managers.Guillaume Melquiond2-13/+8
2007-08-30Got rid of abstract storage and reference-counted pointers. Fixed lifetime ↵Guillaume Melquiond1-167/+0
of accounts and characters in server memory. Cleaned some code.
2007-08-17Simplified TokenCollector and fixed a few bugs. Moved its implementation ↵Guillaume Melquiond2-265/+205
outside the header file.
2007-07-17Implemented loading of warp and spawn areas from map files.Eugenio Favalli1-0/+3
2007-06-16Forgot the changelog entry. Work around compilers that have trouble dealing ↵Guillaume Melquiond1-1/+1
with zero-sized arrays.
2007-06-16Fix rsqrt and sqrt.Guillaume Melquiond1-7/+8
2007-03-23Mostly fixed some compilation issues.Bjørn Lindeijer1-1/+1
2007-03-20Corrected a bug, that occurred when connecting to the game-server.Rogier Polak1-6/+6
2007-03-19Fixed two compiler warnings and corrected a spelling error.Philipp Sehmisch1-6/+6
2007-03-18Added a TokenCollector class for matching magic_tokens.Rogier Polak1-0/+326
2007-03-14Corrected formatting of single-line commentsRogier Polak1-1/+1
2007-03-11Added a utils::processor namespace and a function to determine if, the ↵Rogier Polak2-0/+89
processor the program is running on, is little-endian or big-endian.
2007-03-10Added a utility function for creating magic_tokensRogier Polak3-2/+87
2007-03-05Added an abstrart base class for characterdata, in order to use the same ↵Rogier Polak2-23/+25
serialize and deserialize functions on both the accountserver and the gameserver.
2007-03-03Enable the Id keyword.Bjørn Lindeijer2-2/+2
2007-03-03Set native eol-style on recently added files.Bjørn Lindeijer2-153/+153
2007-03-03Use M_PI_2 instead of acos(0.0f) and FLT_MAX instead of 1.0E40f (which exceededBjørn Lindeijer2-22/+23
the maximum float value). Some cosmetics (whitespace and declaring variables where they are used).
2007-03-03Implemented an alternate collision-detection function, added namespace ↵Rogier Polak3-23/+152
utils::math.
2007-02-25Some speed optimizations at the collision detection suggested by Avaniel.Philipp Sehmisch1-0/+23
2007-01-14Unified logging macros.Björn Steinbrink1-32/+10
2007-01-06Removed world timer usage from account server, instead letting ENet wait duringBjørn Lindeijer2-9/+19
each host service to reduce CPU usage. Modified timer code to gracefully handle jumps back in time.
2007-01-05Simplified handling of verbosity levels. Optimized code by generating only ↵Guillaume Melquiond4-413/+124
needed messages.
2007-01-05Removed log level argument from LOG_FATAL helper macro, with the assumptionBjørn Lindeijer1-2/+2
that fatal messages should always have highest log level.
2007-01-03Fix building with --pedantic.Björn Steinbrink1-6/+6