summaryrefslogtreecommitdiff
path: root/src/map
AgeCommit message (Collapse)AuthorFilesLines
2015-01-20Minor fixes and tweaks suggested by cppcheckHaru25-1198/+1188
- Variable scopes reduced - Parenthesized ambiguous expressions - Removed or added NULL checks where (un)necessary - Corrected format strings - Fixed typos potentially leading to bugs Signed-off-by: Haru <haru@dotalux.com>
2015-01-19Extract exp table validation into separate function.Andrei Karas2-10/+19
2015-01-18Merge pull request #446 from csnv/quickfixshennetsind1-2/+2
Fixes direction in AOE skills
2015-01-18Fixes direction in AOE skillscsnv1-2/+2
2015-01-18To help pinpoint and manage the issue report in 8402shennetsind1-0/+45
@cddebug command; broken entries will be normalized immediately, to forcefully reset the cooldown write "reset" i.e. @cddebug reset, to use on others the usual #cddebug "target" http://hercules.ws/board/tracker/issue-8402-serious-problem-with-skill-that-cant-be-cast-or-used/ Signed-off-by: shennetsind <ind@henn.et>
2015-01-18Merge branch 'master' of github.com:HerculesWS/Herculesshennetsind3-168/+210
2015-01-18For bug report 8367shennetsind1-4/+22
While unable to reproduce, I implemented a countermeasure to the issue in question (settick failing, which'd cause blockskill[] not to be filled). Hopefully someone who can reproduce is able to shed some light on the conditions required, allowing for a proper fix to be made. http://hercules.ws/board/tracker/issue-8367-timer-settick-issue/ Signed-off-by: shennetsind <ind@henn.et>
2015-01-18Command line arguments handling overhaulHaru3-168/+210
- login_server, char_server, map_server as well as the tools (mapcache) now have a common command line arguments handling mechanism. - All of them now accept `--help` (`-h`), `--version` (`-v`) and `--load-plugin`. - login_server now accepts `--login-config` and `--lan-config` instead of relying on positional arguments to override those files. The old syntax will no longer work, please update your custom startup scripts. - char_server now accepts `--char-config`, `--inter-config`, `--lan-config` instead of relying on positional arguments. The old syntax will no longer work, please update your custom startup scripts. - mapcache now accepts `--grf-list`, `--map-list`, `--map-cache`, `--rebuild` in place of, respectively, `-grf`, `-list`, `-cache`, `-rebuild`. - A new macro `CMDLINEARG()` is provided, to help defining new command line argument handlers (i.e. in plugins). the `addArg()` call is still required, but its syntax has changed. The `help` argument is now of type `const char *` rather than a function pointer, and it is supposed to contain the message to show in the `--help` screen. Pass `NULL` if no help message is desired. Signed-off-by: Haru <haru@dotalux.com>
2015-01-18For bugreport 8397 (incomplete solution)shennetsind1-1/+12
Certain skills bypass invincibility http://hercules.ws/board/tracker/issue-8397-5-secs-invulnerability-on-positivesupportive-aoe-buff/ Signed-off-by: shennetsind <ind@henn.et>
2015-01-18Fixed Bug 8441shennetsind1-1/+2
Magnifier item no longer consumes sp http://hercules.ws/board/tracker/issue-8441-item-magnifier-is-consuming-sp/ Signed-off-by: shennetsind <ind@henn.et>
2015-01-18Follow-up to 83077740c7c996d198617d45a1916cd31ff38e9aHaru1-0/+3
Fixed compile error in instance.c Signed-off-by: Haru <haru@dotalux.com>
2015-01-18Fixed Bug Report 8438shennetsind2-1/+12
Addresses instances crashing when running with the CELL_NOSTACK define enabled. Caused by the define not being readily available to all areas that played with mapcell (now with it being included from map.h this no longer is the case) http://hercules.ws/board/tracker/issue-8438-cell-nostack-and-instances-crash/ Signed-off-by: shennetsind <ind@henn.et>
2015-01-18Follow up 348044f12d5f683c8945e0eac642f2795050fb4eshennetsind1-1/+1
Thanks to Haruna Signed-off-by: shennetsind <ind@henn.et>
2015-01-18Replacing rand leftovers with the mt19937arshennetsind6-13/+13
Signed-off-by: shennetsind <ind@henn.et>
2015-01-18Fixing 38 issuesshennetsind15-69/+91
Addressing out of bounds read/write, pointless null checks on already deferenced variables, dead code. Special Thanks to 4144 and Haruna! Signed-off-by: shennetsind <ind@henn.et>
2015-01-1727 Fixesshennetsind11-81/+92
Addressing out of bounds read/write, pointless null checks on already deferenced variables. Special Thanks to 4144 and Haruna! Signed-off-by: shennetsind <ind@henn.et>
2015-01-17Another ~10 Fixesshennetsind8-8/+16
Addressing out of bounds read/write. Special Thanks to 4144 and Haruna! Signed-off-by: shennetsind <ind@henn.et>
2015-01-17Another ~10 Fixesshennetsind5-30/+35
Addressing out of bounds read/write, resource leaks. Special Thanks to 4144 and Haruna! Signed-off-by: shennetsind <ind@henn.et>
2015-01-1710 Distinct fixesshennetsind6-28/+29
Addressing out of bounds read-write. Special Thanks to 4144, Haruna! Signed-off-by: shennetsind <ind@henn.et>
2015-01-17Fixed Bug#8497malufett2-30/+49
-http://hercules.ws/board/tracker/issue-8497-all-mercenaries-miss-hit-for-0/?gopid=24434#entry24434 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-01-12Fix some compilation warnings with clang 3.6.Andrei Karas1-1/+1
2015-01-12Fix uninitialized warning in skill.c.Andrei Karas2-3/+3
2015-01-12Fixed some -Wformat-security warningsHaru1-2/+2
Signed-off-by: Haru <haru@dotalux.com>
2015-01-12fix skills issue introduced in commit 5cdb3d12c4236e0c3a682e30fed96192d2c58188.Andrei Karas2-3/+3
2015-01-12Blocked compilation of plugins that use unavailable functionsHaru37-4/+86
- Rather than failing at runtime, plugins that try to access non-interfaced, unavailable functions or variables, will now show an error at compile-time. Signed-off-by: Haru <haru@dotalux.com>
2015-01-12Fixed an uninitialized variable in skill.cHaru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2015-01-12Fixed Bug where skill timer is not properly terminated/clear when the caster ↵malufett2-6/+6
dies. -Thanks to GM Nihad. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-01-11Merge pull request #438 from 4144/pcdb_checkidHaruna7-41/+45
Convert pcdb_checkid into function in pc interface
2015-01-11Fixed direction problem with self targeted skills. Thanks to Harunacsnv1-1/+2
2015-01-11Convert pcdb_checkid into function in pc interface.Andrei Karas7-41/+45
2015-01-11Merge pull request #435 from 4144/skillextHaruna4-42/+371
Extend skills for using custom skills from plugins.
2015-01-11Merge pull request #434 from csnv/minfixesHaruna2-4/+15
INF2_NOLP update. BL direction fixes. Combo minimum time increased.
2015-01-11Corrected comments and INF2_NOLPcsnv1-2/+4
2015-01-10Extend battle.c for using custom skills from plugins.Andrei Karas2-0/+34
2015-01-10Extend skills.c for using custom skills from plugins.Andrei Karas2-42/+337
2015-01-10HPM Hooks UpdateHercules.ws1-19073/+19073
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2015-01-10Add new eclage skills used in itemsMichieru1-19032/+19073
Update item_db to episode 14.2 Update eclage mobs spawn to official Update eclage mobs to official
2015-01-08Removed Duplicate Entry for client 2014-10-22 on packets.hdastgirpojee1-37/+0
2015-01-06Fixed LK_SPIRALPIERCE & NJ_TATAMIGAESHI change in damage output. Thanks to Michimalufett1-11/+12
Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-01-03Increased minimum combo time to that of amotion.csnv1-1/+1
2015-01-03Fixes the direction of an object (char, mob, etc) when it faces a target ↵csnv2-0/+9
after an action (skill, attack)
2015-01-03Corrected flag INF2_NOLP to actually work as intendedcsnv1-1/+1
2015-01-02Add npcdb_checkid to npc interface.Andrei Karas5-10/+15
2015-01-01Merge pull request #430 from csnv/overviewHaruna1-16/+16
Fixed ranking packet for 20130605 up until 20130703. Fixed order for som...
2015-01-01Removed deprecated command cmdothernpcHaru1-13/+0
- Follow-up to d22e937e62b3443b74051ecc47ccc3137f9ff5f5 Signed-off-by: Haru <haru@dotalux.com>
2015-01-01Removed deprecated script command aliases enablearena/disablearenaHaru1-2/+0
- Follow-up to 134a4bae206a9c14f7da86095b5555b91ace3035 Signed-off-by: Haru <haru@dotalux.com>
2015-01-01Removed deprecated script command alias 'save'Haru1-1/+0
- Follow-up to e914ab9088250b64c81953aa4e35435aabb26055 Signed-off-by: Haru <haru@dotalux.com>
2015-01-01Merge pull request #425 from 4144/fixesHaruna19-179/+228
Different fixes after automatic checks
2014-12-31Improve performance a bit by removing strlen(str) > 0.Andrei Karas4-4/+6
2014-12-31Fix wrong formattingAndrei Karas1-1/+2