summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-02-24Removed several unnecessary RFIFOP typecastsHaru18-159/+158
- While this is arguable, those explicit typecasts are potentially dangerous/misleading (for example, a const specifier might get accidentally dropped without even generating a compiler warning, or a variable type might change during code changes, and any related warning would get silenced by the explicit typecast). - As a reminder Hercules is written in C, and not in C++ (and there's no such thing as "compiling in C++ mode" - they're two different languages.) As such, it is legal to let the compiler automatically promote void* from/to any non-const pointer type, as well as const void* from/to any const pointer type. Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Changed RFIFOP and WFIFOP to return const void * and void * respectivelyHaru2-3/+5
Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Updated homunculus_recv_data() to work better with const dataHaru1-18/+29
Now it no longer needs to memcpy data to a temporary buffer. Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Added const qualifier to several variable/argument pointersHaru36-274/+347
- This is necessary for compatibility with a const RFIFOP. Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Implemented aStrndup()Haru2-0/+65
- aStrndup() behaves similarly to the POSIX function strdup(). It allocates sufficient memory for a copy of the passed string, copies it, and returns a pointer to the copy. A maximum number of characters is copied (and a NUL terminator is always appended after the end). Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Updated inter_pet->tosql() and mapif->save_pet() to work with const dataHaru4-37/+40
Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Split mapif->mercenary_save() into two functions (save and create)Haru3-22/+44
Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Split mapif->homunculus_save() into two functions (save and create)Haru3-43/+61
Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Split mapif->elemental_save() into two functions (save and create)Haru3-25/+51
Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Added const qualifier to the {RFIFO,RBUF}{B,W,L,Q} familiesHaru2-10/+12
A read FIFO/buffer should be, well, read-only. Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Fixed two minor typos in NPC-related error/warning messagesHaru1-2/+2
Signed-off-by: Haru <haru@dotalux.com>
2016-02-23Added pcre include path to the sample plugin VS projectsHaru4-8/+8
This is so the file can be used again as template for third party plugins. Thanks to Michi Signed-off-by: Haru <haru@dotalux.com>
2016-02-23HPM Hooks UpdateHercules.ws1-3/+3
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-02-23Corrected some warnings in Visual StudioHaru3-97/+101
- Changed literal 1L values used in unit64 bit-shift operations to 1ULL. - Follow-up to f606519c3b611573ade246ec82db26437bf03668 (reported by zackdreaver) Signed-off-by: Haru <haru@dotalux.com>
2016-02-22Merge pull request #1166 from 4144/fixemoteHaru1-1/+1
Fix crash on npc emote, if npc not found.
2016-02-22Fix crash on npc emote, if npc not found.Andrei Karas1-1/+1
Reported in http://herc.ws/board/topic/11994-map-crashed-on-friendly-poring-quest-novice-quest/
2016-02-22Merge branch 'Jedzkie-NPC_Updates' into herculesHaru14-246/+535
Closes #1062 as merged
2016-02-22Alberta NPC UpdatesJedzkie3-53/+118
- Separate Tool Dealer and Pet Groomer selling items in Renewal and PRE-Renewal - Change the selling bullets of Trading Merchant in Renewal and PRE-Renewal
2016-02-22Izlude NPC UpdateJedzkie3-18/+22
- Change the selling items of Pet Groomer and Tool Dealer in RENEWAL - Added PRE-RENEWAL Pet Groomer and Tool Dealer in PRE-RE folder - Change the coordinates of Magazine Seller Kenny and Bullet Trader Tony. - Change the coordinates of Trading Merchant.
2016-02-22Payon NPC UpdateJedzkie12-135/+288
- Change the coordinate of Taekwon Job Changer 'Phoenix' from payon to payon_in01 - Change the facing position of Repairman - Change the selling items of Tool Dealer and Pet Groomer in RENEWAL - Add PRE-RENEWAL Tool Dealer and Pet Groomer. - Change the coordinates of some warps - Change the coordinate of Guide in payon - Change the coordinate of Helm of Angel and Deviruchi Cap quest npc
2016-02-21Geffen NPC UpdatesJedzkie4-48/+115
- Change the selling items of Pet Groomer and Tool Dealer in RENEWAL - Added PRE-RENEWAL Pet Groomer and Tool Dealer in PRE-RE folder - Change the NPC Sprite of Repairman
2016-02-21ItemDB SQL SyncHercules.ws2-3305/+3305
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-02-21HPM Hooks UpdateHercules.ws3-6/+68
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-02-21Merge branch 'dastgir-16-ItemDB' into herculesHaru8-3416/+22147
Closes #1061 as merged
2016-02-21Changed item_db to new formatDastgir3-3358/+21704
Signed-off-by: Haru <haru@dotalux.com>
2016-02-21Added tool to convert jobmask to new formatDastgir1-0/+100
Signed-off-by: Haru <haru@dotalux.com>
2016-02-21Updated DocumentationDastgir4-42/+175
2016-02-21Changing Job field to 'int64'Dastgir3-13/+13
Signed-off-by: Haru <haru@dotalux.com>
2016-02-21New format for Job field in job_db.confDastgir2-12/+164
2016-02-21Added missing '-lpcre' linker flag to the Xcode projectHaru1-0/+2
Fixes a linking error Signed-off-by: Haru <haru@dotalux.com>
2016-02-20Fixed some warnings in GCC 5.2Haru1-5/+5
Signed-off-by: Haru <haru@dotalux.com>
2016-02-20Fixed compile warnings in clangHaru3-52/+4
- Fixed a -Wshorten-64-to-32 warning in case there's no thread-local-storage available - Disabled -Wcast-align for the time being Signed-off-by: Haru <haru@dotalux.com>
2016-02-20Added explicit c99 mode to CFLAGS in the configure scriptHaru3-4/+4
Signed-off-by: Haru <haru@dotalux.com>
2016-02-20HPM Hooks UpdateHercules.ws1-3/+3
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-02-20Merge pull request #1162 from 4144/flagsHaru53-295/+1079
Add some compiler warning flags and fix new warnings
2016-02-19Add to configure some flags what for now not create any warnings.Andrei Karas2-15/+511
2016-02-19Remove some unused macroses. Left macroses in socket.cAndrei Karas4-13/+17
2016-02-19Add noreturn attributes.Andrei Karas5-5/+72
Also add compiler flag for check for missing noreturn attributes.
2016-02-19Fix missing include dirs. Add compiler flag -Wmissing-include-dirs.Andrei Karas3-4/+56
2016-02-19Fix all known warnings from compiler flags -Wformat*Andrei Karas43-248/+408
Add all missing -Wformat flags into configure.
2016-02-19Fix some cast discards 'const' qualifier from pointer target type warnings.Andrei Karas11-41/+46
Add -Wcast-qual into configure comment.
2016-02-18Merge pull request #1160 from MishimaHaruna/libconfigAndrei Karas61-1900/+3637
Libconfig: update to 1.5 and various improvements
2016-02-17Replaced some now unnecessary includes with forward declarations in header filesHaru14-11/+19
Added some forgotten <stdio.h> and "common/conf.h" includes to .c files, that were previously masked by the above. Signed-off-by: Haru <haru@dotalux.com>
2016-02-17HPM Hooks UpdateHaru3-696/+696
2016-02-17Removed unnecessary typedefs from libconfigHaru33-554/+557
Signed-off-by: Haru <haru@dotalux.com>
2016-02-17HPM Hooks UpdateHaru9-39/+39
2016-02-17Renamed config->read_file to config->load_fileHaru17-54/+54
- The return value is now consistent with the libconfig standard (CONFIG_TRUE/CONFIG_FALSE). - Removed some redundant error messages. Signed-off-by: Haru <haru@dotalux.com>
2016-02-17libconfig: report file name in case of i/o errorHaru1-0/+1
Signed-off-by: Haru <haru@dotalux.com>
2016-02-17HPM Hooks UpdateHaru9-0/+960
2016-02-17Added new set of functions to libconfig in order to handle other data typesHaru2-0/+261
- New data types supported: - uint16 - int16 - uint32 - bool - mutable string - Documented conf_read_file Ported to modern Hercules and cleaned up from Panikon's commits fa09661f1bdbe41060fa97f5e63810523feadcc0, cbb3e3b6ad987eeeaac0c75236feabfd2206cf07, cd79c70101638cff476c40d31e2b7cd031915284, 126f9b2dc1ab5af223ef37be6000346fe18a0a96, b9bf380edc30dab038abef41568081037a75ffb5. Signed-off-by: Haru <haru@dotalux.com>