Age | Commit message (Collapse) | Author | Files | Lines |
|
- The npc-side code no longer depends on the client data layout.
Signed-off-by: Haru <haru@dotalux.com>
|
|
struct itemlist
- The skill-side code no longer depends on the client packet data layout.
- Some data validation has been added.
Signed-off-by: Haru <haru@dotalux.com>
|
|
- The npc-side code no longer depends on the client packet data layout.
Signed-off-by: Haru <haru@dotalux.com>
|
|
- To be used in various non-clif functions that right now take client
data buffers directly.
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>
|
|
- WBUFP now returns a pointer to void, which automatically casts to any
non-const or const pointer.
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
- Also increased robustness of the macro
Signed-off-by: Haru <haru@dotalux.com>
|
|
- This is necessary for compatibility with a const RP2PTR/RFIFO2PTR
Signed-off-by: Haru <haru@dotalux.com>
|
|
- 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>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
Now it no longer needs to memcpy data to a temporary buffer.
Signed-off-by: Haru <haru@dotalux.com>
|
|
- This is necessary for compatibility with a const RFIFOP.
Signed-off-by: Haru <haru@dotalux.com>
|
|
- 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>
|
|
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>
|
|
A read FIFO/buffer should be, well, read-only.
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
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>
|
|
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
|
|
- 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>
|
|
Fix crash on npc emote, if npc not found.
|
|
Reported in http://herc.ws/board/topic/11994-map-crashed-on-friendly-poring-quest-novice-quest/
|
|
Closes #1062 as merged
|
|
- 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
|
|
- 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.
|
|
- 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
|
|
- 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
|
|
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
|
|
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
|
|
Closes #1061 as merged
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
|
|
Fixes a linking error
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
- 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>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
|
|
Add some compiler warning flags and fix new warnings
|
|
|
|
|
|
Also add compiler flag for check for missing noreturn attributes.
|