Age | Commit message (Collapse) | Author | Files | Lines |
|
- 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>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
- 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>
|
|
Added a 'type' field to describe the command type (function, category)
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
console->input->command_list
Signed-off-by: Haru <haru@dotalux.com>
|
|
HPM->cmdline_load_plugins
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
- 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>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
- 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>
|
|
signed/unsigned mismatch.
|
|
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
|
|
Convert refine_db.txt to refine_db.conf (libconfig)
|
|
Split function set_reg and get_val into functions based on variable types.
|
|
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
|
|
- 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>
|
|
- Fixes #757, thanks to kyeme
- Based on Emistry's PR #754 (improved)
Signed-off-by: Haru <haru@dotalux.com>
|
|
SP can be zero. HP probably not, but just in case.
|
|
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.
|
|
|
|
|
|
- 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>
|
|
Fixes Maelstrom crashing server
|
|
Bug Report: https://github.com/HerculesWS/Hercules/issues/731
|
|
- 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.
|
|
Corrected critical bonus display
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
- 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>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
Was broken in previous commits.
|
|
|
|
|
|
|
|
|
|
- Follow-up to ba9c1cc1, 547dd68
- Fixes #730 (thanks to VeilsideGX)
Signed-off-by: Haru <haru@dotalux.com>
|
|
- Follow-up to ba9c1cc1
- Fixes #726
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
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>
|
|
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>
|
|
Removed some redundant checks from atcommands (fixes a compiler warning
in clang 7)
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
|
|
Autotrade Struct to HPM
|
|
Split from #558 (and added a few more corrections)
Signed-off-by: Haru <haru@dotalux.com>
|
|
Closes #558
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
|
|
|