summaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)AuthorFilesLines
2015-12-28Added elemental_id enum, replaced numeric elemental IDs with enum membersHaru1-3/+0
Signed-off-by: Haru <haru@dotalux.com>
2015-12-28Added merc_id, replaced numeric mercenary IDs with enum membersHaru1-1/+0
Signed-off-by: Haru <haru@dotalux.com>
2015-12-28Added homun_id enum, replaced numeric constants with enum membersHaru1-3/+0
Signed-off-by: Haru <haru@dotalux.com>
2015-12-22Add a source constant SCRIPT_VARNAME_LENGTHAnnieRuru1-0/+2
since we can freely adjust the length of the variable name just edit this value and edit in main.sql
2015-12-17Merge pull request #917 from dastgir/packetAndrei Karas1-1/+5
Update max packet size according to client date
2015-12-17Update max packet size according to client dateDastgir1-1/+5
2015-12-15Added GPL-compliant header to all sources and build scriptsHaru54-189/+1097
Signed-off-by: Haru <haru@dotalux.com>
2015-12-15Added GPL information on interactive server startupHaru2-0/+12
2015-12-13- Fixed #723 now it's possible to retrieve Battle Config Settings from ↵Your Name3-12/+48
plugins into scripts - Fixed Possible Crash when null parse function pointer passed to HPMi->addConf - Now it's possible to use same parse function for all config entries - Now Battle Config entries must have a return function
2015-12-12HPM Hooks UpdateHercules.ws1-0/+12
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2015-12-06Added backtrace in case an invalid race is passed to map_race_id2maskHaru1-0/+13
Signed-off-by: Haru <haru@dotalux.com>
2015-12-02Fixed an issue with the HPMDataCheck when PCRE is enabledHaru1-1/+1
- Follow-up to 300668d, thanks to AnnieRuru Signed-off-by: Haru <haru@dotalux.com>
2015-12-02HPM Hooks UpdateHercules.ws1-0/+5
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2015-12-02Fixed compile errors on very old PACKETVERsHaru3-6/+11
- Fixes #903 and other similar problems Signed-off-by: Haru <haru@dotalux.com>
2015-12-02Fixed an issue with the socket send/receive timeouts in WindowsHaru1-12/+27
- According to https://msdn.microsoft.com/en-us/library/windows/desktop/ms740476(v=vs.85).aspx setsockopt() for SO_RCVTIMEO/SO_SNDTIMEO require a DWORD argument, unlike their POSIX equivalent, requiring a struct timeval. - Always keep in mind: When you see a Microsoft API function that looks like a duck, swims like a duck, quacks like a duck, it most certainly is not a duck. - Thanks to ultramage. Signed-off-by: Haru <haru@dotalux.com>
2015-11-28Fixed a compilation error when the memory manager is disabledHaru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2015-11-14HPM Hooks UpdateHaru1-2/+2
2015-10-24Merge pull request #811 from ossi0110/masterHaruna1-0/+3
Fixed Quest Log Packet for 2014-10-22 + Clients
2015-10-21Fixed Typos (+1 squashed commits)ossi01101-0/+3
Squashed commits: [18d0374] Fixed Quest Log Packet for 2014-10-22 + Clients Added log Folder to be able to capture Map Server Logs see map-server.conf for it Added save folder to be able to dump unknown packets
2015-10-21Fixed a console command parse issueHaru1-16/+9
Signed-off-by: Haru <haru@dotalux.com>
2015-10-20Corrected a compilation issue in plugins that use the memmgr interfaceHaru1-3/+3
Follow-up to 54d1c8b93adbeee5838b8dadabeb789b9fa6c511 Signed-off-by: Haru <haru@dotalux.com>
2015-10-20Update HPM hooks.Andrei Karas2-9/+9
2015-10-19Fix reallocating memory without memory manager.Andrei Karas1-1/+49
2015-10-19rename malloc.c/h to memmgr.Andrei Karas16-18/+18
2015-10-11Fixed various compiler warnings (follow-up to 5c22b63)Haru3-4/+4
Signed-off-by: Haru <haru@dotalux.com>
2015-10-11Merge pull request #788 from MishimaHaruna/libconfigAndrei Karas1-2/+2
Libconfig edits for mob_db.conf
2015-10-11Added support to libconfig for key names containing '.' or beginnig with digits.Haru1-2/+2
- Note: Since '.' (period) is a valid character for key names, it is no longer a valid path separator for lookups. Please use '/' (forward slash) or ':' (semicolon) instead. Signed-off-by: Haru <haru@dotalux.com>
2015-10-11HPM Hooks UpdateHaru1-0/+1
2015-10-11Changed various s_subnet arrays to VECTORsHaru2-83/+58
- sockt->lan_subnet was renamed to sockt->lan_subnets. - sockt->trusted_ip was renamed to sockt->trusted_ips. - sockt->allowed_ip was renamed to sockt->allowed_ips. - Convenience macros for checking IP ranges and subnets are provided (SUBNET_MATCH, APPLY_MASK). Signed-off-by: Haru <haru@dotalux.com>
2015-10-11Cleanup of the HPluginData implementation (second part)Haru6-152/+209
- Changed the hplugin_data_store's array into a VECTOR. Signed-off-by: Haru <haru@dotalux.com>
2015-10-11Cleanup of the HPluginData implementation (First part)Haru6-136/+154
- 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 VECTORHaru2-44/+43
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.Haru3-27/+43
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-02Skip bound items in the mergeitem feature.Haru1-0/+1
- Fixes #757, thanks to kyeme - Based on Emistry's PR #754 (improved) Signed-off-by: Haru <haru@dotalux.com>
2015-09-25More aggressive whitespace cleanup. Follow up to 51329e6Haru13-325/+10
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-18Clarified the intent of several assignments inside conditional expressionsHaru1-2/+2
Signed-off-by: Haru <haru@dotalux.com>