summaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)AuthorFilesLines
2014-12-10RENEWAL Updates:malufett1-0/+8
-Homunculus Official Statuses -Updated RE @mobinfo to show proper status data.(Follow up 28a8b0f7b06a6af86aff6ececf7d9541d457e297) -Some official behaviors. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2014-12-06into mapindex add variable with default map and position.Andrei Karas2-2/+11
2014-12-04Merge pull request #394 from 4144/mapindexHaruna2-3/+12
In mapindex move check for default map into separate method.
2014-12-02Fix compilation without memory manager.Andrei Karas2-0/+4
configure example: ./configure --enable-manager=no
2014-11-16In mapindex move check for default map into separate method.Andrei Karas2-3/+12
2014-11-16Whitespace cleanup (no code changes)Haru32-927/+859
This includes, and is not limited to: mixed or wrong indentation, excess whitespace (horizontal and vertical), misalignment, trailing spaces. Signed-off-by: Haru <haru@dotalux.com>
2014-11-16Added missing strlib->jstrescapecpy initializationHaru1-0/+1
Signed-off-by: Haru <haru@dotalux.com>
2014-11-16Moved strlib_s, stringbuf_s and sv_s into strlib.cHaru2-3/+7
Signed-off-by: Haru <haru@dotalux.com>
2014-11-16Moved sql_s into sql.cHaru2-1/+3
Signed-off-by: Haru <haru@dotalux.com>
2014-11-16Moved DB_s into db.cHaru2-1/+3
Signed-off-by: Haru <haru@dotalux.com>
2014-11-16Moved HPM_s into HPM.c and removed the HPMi_s symbol from the coreHaru3-2/+4
Signed-off-by: Haru <haru@dotalux.com>
2014-11-15Add support for plugin options in map server config (script.conf).Andrei Karas1-0/+3
2014-11-15Add support for plugin options in map server config (logs.conf).Andrei Karas1-0/+3
2014-11-15Add support for plugin options in map server config (inter-server.conf).Andrei Karas1-1/+4
2014-11-15Add support for plugin options in char server config (inter-server.conf).Andrei Karas1-3/+6
2014-11-15Add support for plugin options in char server config.Andrei Karas1-1/+4
2014-11-15Add support for plugin options in login server config.Andrei Karas1-0/+3
2014-11-15regenerate HPM hooks.Andrei Karas1-0/+81
2014-11-14Add ability to add deprecated command from scripts and plugins.Andrei Karas1-2/+8
2014-11-11Corrected some uninitialized interface functionsHaru1-0/+1
- Detected through the just merged validation tool, special thanks to Andrei Karas. - Added validation tool to the Travis tests. Signed-off-by: Haru <haru@dotalux.com>
2014-11-07HPM Hooks Update.Andrei Karas1-0/+5
2014-11-03Merge branch 'master' of github.com:HerculesWS/Herculesshennetsind4-56/+137
Signed-off-by: shennetsind <ind@henn.et> Conflicts: src/map/battle.c
2014-11-03Introducing 2014-10-22, Roulette and Per-Char Gender!shennetsind1-1/+1
Details in http://hercules.ws/board/topic/7618-2014-10-22-roulette-and-per-char-gender/ Special Thanks to the all-mighty Yommy, Ziu and Haruna! Signed-off-by: shennetsind <ind@henn.et>
2014-10-28Added preliminary support for char and login server to HPMHookingHaru1-11/+24
- Special thanks to Ind Signed-off-by: Haru <haru@dotalux.com>
2014-10-28Added preliminary support for login and char server in the HPMDataCheckHaru4-45/+113
- Special thanks to Ind Signed-off-by: Haru <haru@dotalux.com>
2014-10-04Pathfinding now works exactly as on the clientMichieru1-0/+99
- This should solve most of the position lag problems, especially ones that caused monsters to suddenly appear next to you (happened especially often when using icewall) - Added a new heap implementation to db.h (POP2, PUSH2, SIFTUP, SIFTDOWN, UPDATE) that simulates the heap that the client uses, there was no other way to reproduce 100% exact behavior - I recommend using the old heap implementation for everything else - Updated path.c to use the new heap macros and also fixed the order in which the different possible directions are pushed into heap - Special thanks to rversteegen for helping me with various tests and the heap implementation - Special thanks to ultramage for providing info that helped us narrowing down the possible variables Mega thanks to Playtester (rathena:c009b3f4a)
2014-09-21Fixed Bug 8344shennetsind1-7/+0
socket.c will no longer drop connections based on wdata size vs WFIFO_MAX. Fixed issue in cooldown logic which'd cause invalid timers and provide characters with ever-lasting cooldowns Special Thanks to Haruna! http://hercules.ws/board/tracker/issue-8344-some-error-message-on-map-server/ Signed-off-by: shennetsind <ind@henn.et>
2014-09-08Fix on start possible buffer overruns.Andrei Karas1-1/+1
Checks after using --enable-sanitize.
2014-08-20Follow-up to b294026e6614a652c23bb0cea8a0d4dc69d8b125Haru1-0/+1
- Added documentation for the pc->search_item function and formalized its return values. If the searched item is not found, now it returns the newly introduced constant INDEX_NOT_FOUND. - Updated pc->search_item checks to make use of INDEX_NOT_FOUND. - Fixed an issue with anvils not detected by the weapon forginc code, if they were in the first position of the inventory. - Added ITEMID constants for the four anvil types. Signed-off-by: Haru <haru@dotalux.com>
2014-08-07Fixed some MSVC incompatibilitiesHaru2-0/+3
- Resolves bugreport:8289 http://hercules.ws/board/tracker/issue-8289-compile-error-vs-2013/ - Disables some winsock-related deprecation warnings. Signed-off-by: Haru <haru@dotalux.com>
2014-08-07Corrected several format-string errors through the codeHaru14-99/+115
- Functions that expect a printf-style format string are now marked as such, so that gcc/clang will emit a warning warn you if you mismatch format string and arguments. Signed-off-by: Haru <haru@dotalux.com>
2014-07-19Corrected a dangling pointer in various DBMap/DBIterator functionsHaru1-8/+14
- If the DBMap has the DB_RELEASE_DATA option set and it contains a pointer, the optional returned out_data will now have its pointer value set to NULL. - Credits to Ind for discovering the issue. Signed-off-by: Haru <haru@dotalux.com>
2014-07-11Explicitly specify 'void' when a function expects no argumentsHaru5-15/+15
- See CERT DCL20-C. Signed-off-by: Haru <haru@dotalux.com>
2014-07-11Removed some c++ compatibility definitionsHaru2-39/+3
- Neither our code nor 3rdparty code is, (or will compile as) C++, regardless of those checks. - Special thanks to panikon. Signed-off-by: Haru <haru@dotalux.com>
2014-07-11Fixed reserved __identifier violationsHaru35-216/+211
- Complies with CERT DCL37-C - Fixes issue #293 (special thanks to elfring) Signed-off-by: Haru <haru@dotalux.com>
2014-07-11Removed unsafe pointer typedefsHaru9-115/+115
- If a variable doesn't look like a pointer... Maybe it might be a pointer after all. Please, give me back my '*' sign. - See CERT DCL05-C. Signed-off-by: Haru <haru@dotalux.com>
2014-07-10Follow up to 3c24fb656f3b3370b7152d6f1d2cc9dbc6fbae5dpanikon1-3/+2
Moved 'count' declaration in order to fit MSVC c89-c99 standard
2014-07-10Re-added revision info to the memory leak logHaru2-7/+9
- Information was missing because sysinfo->final() was freeing the data before iMalloc->final() could log it. Signed-off-by: Haru <haru@dotalux.com>
2014-07-09Corrected compile errors in case DB_ENABLE_STATS is definedHaru1-4/+4
Signed-off-by: Haru <haru@dotalux.com>
2014-07-09Corrected issue with bce716fa908584f435dcf97904fb37ada6dd90b7 forgot to ↵panikon2-3/+3
removed a couple of parenthesis, sorry guys
2014-07-08reversed portion of 7cd967f812ab741c41c416fb9f7c2a921c36e947 that would ↵Streusel1-2/+2
point to nothing.
2014-07-09Fixed status_calc_regen crash ↵panikon1-0/+4
issue:http://hercules.ws/board/tracker/issue-1298-mapserver-crashed-item-check/ Follow up to 7cd967f812ab741c41c416fb9f7c2a921c36e947
2014-07-08Extracted method to obtain SYSTEM_INFO from functions in sysinfo.cpanikon3-18/+41
Added proper method to obtain page size in windows
2014-07-08HPM Hooks UpdateHercules.ws1-0/+1
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2014-07-07Follow up to 2e6016fdastgir1-2/+2
Increased MAX_SKILL_TREE to comply with WE_CALLPARENT and WE_BABY in Extended Super Novice. issue: 8250 http://hercules.ws/board/tracker/issue-8250-latest-rev-warning/
2014-07-06Fixed issue with getlookpanikon1-3/+2
Follow up to 2e6016f, increased MAX_SKILL_TREE in order to fit WE_BABY in Expanded Super Novice
2014-05-30Merge pull request #282 from MrKeiKun/fix_typoHaruna26-111/+111
Fixed some typo
2014-05-30Fixed typos inside src/Shido26-111/+111
2014-05-30Removed CMakeLists.txt (Thanks to Haruna)Shido1-166/+0
2014-05-25Improved CFLAGS/CPPFLAGS handlingHaru2-11/+6
- Language extensions, such as _GNU_SOURCE are now enabled through CPPFLAGS by the configure script, rather than within the source code. - Moved some configure-time CFLAGS to CPPFLAGS, where appropriate. - Fixes bugreport:8211, thanks to Neoth http://hercules.ws/board/tracker/issue-8211-compiling-warning-in-linux Signed-off-by: Haru <haru@dotalux.com>