It will now use the first available of:
- QueryPerformanceCounter (WIN32)
- clock_gettime (glibc)
- mach_absolute_time (Mac OS X)
- clock (fallback)
Modified configure script to detect which function is available
Signed-off-by: Haru <haru@dotalux.com>
Added portable functions for measuring CPU time (`clock()` in Windows returns wall-clock time)
Changed bcrypt benchmarking to exclude random salt generation from measurement.
- Follow-up to a4802eae
- Fixes bugreport #7572http://hercules.ws/board/tracker/issue-7572-dispell-2
- SA_DISPELL would fail outside PvP if caster and target are in the same
party AND in the same guild at the same time.
- Special thanks for kyeme (bugreport), Xgear (review.)
Signed-off-by: Haru <haru@dotalux.com>
Now uses binary heap defined in `db.h`.
Walk requests now use A* (hard) pathfinding only to match game client
behavior.
Added defines for movement cost.
Added some documentation & comments.
Fixed a bug when removing last element of binary heap (its parent would
be removed instead if it had the same value).
Binary heap now allows custom swapper function/macro. Added `swap_ptr`
macro to swap two pointers in place (`swap` is not suitable for
pointers). This allows to store pointers in binary heap.
- This allows the user to override the compiler at each make invocation
(i.e. to run scripts to generate .clang_complete for
https://github.com/Rip-Rip/clang_complete )
- Updated .gitignore with a few platform-dependent entries
Signed-off-by: Haru <haru@dotalux.com>
Files loaded by HCache now display a green C to distinguish whether it was loaded from cache or not
Fixed a typo in the SQL Update Checker.
Signed-off-by: shennetsind <ind@henn.et>
-Where 'bLongAtkDef' is not working properly with physical attack.
Fixed Bug#7530
-Where Masquerades affect boss monsters.
Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Also modified sd->state.gmaster_flag from struct to a 'unsigned int : 1;' flag as sd->guild already stores the pointer and was thus a duplicate.
Special Thanks to Haru, Xgear
Signed-off-by: shennetsind <ind@henn.et>
- Fixes issue #7536 (thanks to jTynne for the report)
http://hercules.ws/board/tracker/issue-7536-map-crash-july-15th/
- Minor corrections to the other interfaces as well (reordered
initialization to follow the definitions, removed duplicate entry in
the skill interface initialization, commented out some unused entries)
Signed-off-by: Haru <haru@dotalux.com>
- Added packets for 2013-06-12Ragexe, 2013-06-18Ragexe,
2013-06-26Ragexe, 2013-07-03Ragexe
- Added packetKeys for 2013-06-26Ragexe, 2013-07-03Ragexe
- Thanks to Shakto for always providing us with the data, OnNplay for
the the update reminder.
Signed-off-by: Haru <haru@dotalux.com>
- The parameter was only used in combination with MF_RESTRICTED, now
superseded by MF_ZONE
- Follow-up b08910e8, 90f117f6
Signed-off-by: Haru <haru@dotalux.com>
- Fixed some variable names incorrectly entered as literals in target
names
- This fixes a build failure when trying to build any specific
sub-project directly from src/*/
- Removed an old svn-related command from the 'import' recipe
- This fixes the build failures when trying to run 'make tools' right
after 'make clean'
- Removed duplicate entries in the 'clean' recipe for map and login
servers
Signed-off-by: Haru <haru@dotalux.com>
This prevents nickname truncation and other possibly ill side-effects in
case the source string for a message is in the form:
aNickname!~ident@an.irc.user.with.a.very.long.hostname_________
Signed-off-by: Haru <haru@dotalux.com>
Fixing a ancient bug where placing a item from inventory to cart when cart is full would render such item un-clickable, same for when doing so from storage to cart.
Special Thanks to Yommy for all the data, jTynne for bringing this up.
http://hercules.ws/board/tracker/issue-7434-weightinability-to-click-item-issue/
Signed-off-by: shennetsind <ind@henn.et>
Executing unique events (NPC::Label) no longer loops through all events.
Executing global event labels (::Label) also no longer loops through all
events. Global event labels are now mapped to list of only relevant NPC
events.
Cleaned up code related to clearing npc path db.
-Where RE equip atk doesn't properly update status window and negative equip atk should now affect atk.
Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Duplicate indexes would not be cleared, causing array to gradually increase in size.
Thanks to ToiletMaster for providing extra information.
Signed-off-by: shennetsind <ind@henn.et>