summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2015-10-11Cleanup of the HPluginData implementation (First part)Haru30-357/+246
- Several explicit casts are removed, to have a slightly better type-checking at compile time. - A destructor function is provided, to remove code duplication. Signed-off-by: Haru <haru@dotalux.com>
2015-10-11Changed cmdline->args_data to a VECTORHaru3-21/+22
Signed-off-by: Haru <haru@dotalux.com>
2015-10-11Fixed an issue preventing correct nesting of console commands into subcategoriesHaru1-1/+1
- The issue prevented the creation of multiple commands in the same subcategory through console->input->addCommand (i.e. "foo:bar:baz" and "foo:bar:quux" would instead create "foo:bar:baz" and "foo:quux") Signed-off-by: Haru <haru@dotalux.com>
2015-10-11Changed struct CParseEntry::u.next to VECTOR and renamed to u.childrenHaru2-55/+93
Added a 'type' field to describe the command type (function, category) Signed-off-by: Haru <haru@dotalux.com>
2015-10-11Changed console->input->cmds to a VECTOR and renamed to console->input->commandsHaru2-35/+35
Signed-off-by: Haru <haru@dotalux.com>
2015-10-11Changed console->input->cmd_list to a VECTOR and renamed to ↵Haru2-64/+74
console->input->command_list Signed-off-by: Haru <haru@dotalux.com>
2015-10-11Changed HPM->cmdline_plugins to a VECTOR and renamed to ↵Haru2-15/+9
HPM->cmdline_load_plugins Signed-off-by: Haru <haru@dotalux.com>
2015-10-11Changed HPM->confs to a VECTOR and renamed to HPM->config_listenersHaru3-42/+53
Signed-off-by: Haru <haru@dotalux.com>
2015-10-11Changed HPM->fnames to a vector type, renamed to HPM->filenamesHaru2-24/+41
- This is a generic vector. It doesn't make use of the VECTOR type because it needs to outlive the memory manager. Signed-off-by: Haru <haru@dotalux.com>
2015-10-11Changed HPM->packets[] into an array of VECTORHaru6-87/+91
Signed-off-by: Haru <haru@dotalux.com>
2015-10-11Changed HPM->symbols to a VECTORHaru2-24/+40
Signed-off-by: Haru <haru@dotalux.com>
2015-10-11Replaced HPM->plugins with a VECTORHaru2-57/+93
Signed-off-by: Haru <haru@dotalux.com>
2015-10-11Changed VECTOR/BHEAP/ARRAY macros to discourage usage of unsigned loop counters.Haru4-28/+44
Signed-off-by: Haru <haru@dotalux.com>
2015-10-11Removed reserved identifiers from db.h (VECTOR, BHEAP implementations)Haru1-561/+738
- According to ISO/IEC 9899:1999 ('C99'), all identifiers that begin with an underscore and either an uppercase letter or another underscore are always reserved for any use. Signed-off-by: Haru <haru@dotalux.com>
2015-10-10Fixed issue #783Emistry1-1/+1
signed/unsigned mismatch.
2015-10-06HPM Hooks UpdateHercules.ws1-24/+24
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2015-10-06Merge pull request #682 from Smokexyz/masterHaruna5-50/+164
Convert refine_db.txt to refine_db.conf (libconfig)
2015-10-05Merge pull request #747 from 4144/setvarsHaruna5-88/+664
Split function set_reg and get_val into functions based on variable types.
2015-10-04HPM Hooks UpdateHercules.ws3-0/+32
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2015-10-04Added clif->packet() to retrieve info about a packet.Haru3-9/+19
- As per Malufett/Michieru request, in order to make it possible for a plugin to obtain information about a packet. Signed-off-by: Haru <haru@dotalux.com>
2015-10-02Skip bound items in the mergeitem feature.Haru2-2/+3
- Fixes #757, thanks to kyeme - Based on Emistry's PR #754 (improved) Signed-off-by: Haru <haru@dotalux.com>
2015-10-02Fixed crash in SC_GENSOUAncyker1-0/+3
SP can be zero. HP probably not, but just in case.
2015-10-02Convert refine_db.txt to refine_db.conf (libconfig)Smokexyz5-50/+164
Thanks for Haru and 4414 for pointing out inefficiency in code, edited as suggested. Rework - Changed refine_db.conf format to a more concise one, thanks to Haru for suggesting. [2/10/15] Updated with corrections pointed out by Haru. Updated warning and error messages.
2015-10-01Update HPM hooks.Andrei Karas3-0/+504
2015-10-01Split function set_reg and get_val into functions based on variable types.Andrei Karas2-88/+160
2015-09-30Refactored ACMD(jobchange)Haru1-42/+41
- Follow-up to 7064ec3. - Fixes a logic issue issue preventing the command's help message to be shown when no arguments are specified. - Fixes #759, thanks to theultramage. Signed-off-by: Haru <haru@dotalux.com>
2015-09-29Merge pull request #756 from Nihadm89/patch-1Haruna1-1/+1
Fixes Maelstrom crashing server
2015-09-28Fixes Maelstrom crashing serverNihadm891-1/+1
Bug Report: https://github.com/HerculesWS/Hercules/issues/731
2015-09-28Fixed merge behaviour of map zones. Fixes #572Kpy!2-7/+18
- Both "Normal" and "PK Mode" default zones will now be overwritten (instead of merged) by "GvG", "PvP" and "Battlegrounds" zones. - Refactored some code to clarify intent.
2015-09-26Merge pull request #579 from csnv/minfixesHaruna2-10/+10
Corrected critical bonus display
2015-09-25More aggressive whitespace cleanup. Follow up to 51329e6Haru52-2264/+1196
Signed-off-by: Haru <haru@dotalux.com>
2015-09-25Corrected a plugin unload issueHaru1-13/+14
- This doesn't affect the current unloading function (executed at shutdown), but it is only related to the (upcoming) manual plugin unloading. Signed-off-by: Haru <haru@dotalux.com>
2015-09-25Upgraded Doxygen configuration file to 1.8.10Haru1-0/+1
Signed-off-by: Haru <haru@dotalux.com>
2015-09-24Fix script command checkcell without player attached.Andrei Karas1-2/+1
Was broken in previous commits.
2015-09-24Update HPM hooks.Andrei Karas1-36/+36
2015-09-24Add bl parameter to map_searchrandfreecell and map_addflooritem.Andrei Karas8-35/+35
2015-09-24Add bl parameter to closest_freecell.Andrei Karas3-7/+7
2015-09-24Add bl parameter to getcell functions.Andrei Karas16-107/+109
2015-09-22Corrected more VisualStudio incompatibilitiesHaru1-15/+32
- Follow-up to ba9c1cc1, 547dd68 - Fixes #730 (thanks to VeilsideGX) Signed-off-by: Haru <haru@dotalux.com>
2015-09-21Corrected a VisualStudio compile issue.Haru1-6/+15
- Follow-up to ba9c1cc1 - Fixes #726 Signed-off-by: Haru <haru@dotalux.com>
2015-09-18Clarified the intent of several assignments inside conditional expressionsHaru17-94/+95
Signed-off-by: Haru <haru@dotalux.com>
2015-09-18Clarified intent in various side-effect assignmentsHaru2-16/+16
While this doesn't change anything in the way those assignments work, it clarifies that they're intended to be side-effect assignments and not typos (to both human readers and static analyzers) Signed-off-by: Haru <haru@dotalux.com>
2015-09-18Follow-up to 21442a885b1214e1b6a2f23a2553da416fb97238Haru1-8/+7
Corrected a nullpo check in the clif_party_withdraw function (in some cases, it is acceptable for sd to be NULL -- documentation is still lacking though) Signed-off-by: Haru <haru@dotalux.com>
2015-09-18Follow-up to ba9c1cc16cb8f696a50d0ae928b6e8a19086405bHaru1-10/+10
Removed some redundant checks from atcommands (fixes a compiler warning in clang 7) Signed-off-by: Haru <haru@dotalux.com>
2015-09-17HPM Hooks UpdateHercules.ws3-0/+38
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2015-09-17Merge pull request #711 from dastgir/autotrade_structHaruna4-2/+44
Autotrade Struct to HPM
2015-09-17corrected some white spaces and added missing EOL.Frost2-3/+0
Split from #558 (and added a few more corrections) Signed-off-by: Haru <haru@dotalux.com>
2015-09-17Added Configuration in enabling/disabling monster hp bar on new clients.Frost4-13/+16
Closes #558 Signed-off-by: Haru <haru@dotalux.com>
2015-09-17HPM Hooks UpdateHercules.ws3-0/+124
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2015-09-15Add missing checks into duel.cAndrei Karas1-0/+12