summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking.Hooks.inc
diff options
context:
space:
mode:
authorHercules.ws <Hercules@efficiently.awesome>2014-07-11 09:30:35 +0200
committerHerculesWSAPI <Hercules@efficiently.awesome>2014-07-11 09:30:35 +0200
commit0539a1247d909b11a9730a12ff0a72d110371fcb (patch)
tree4f4a5cd40644e62b7515ff3d19bd24eac548b022 /src/plugins/HPMHooking/HPMHooking.Hooks.inc
parentda190e09a33591aaabfd2c7735fd64ebb12f78e9 (diff)
downloadhercules-0539a1247d909b11a9730a12ff0a72d110371fcb.tar.gz
hercules-0539a1247d909b11a9730a12ff0a72d110371fcb.tar.bz2
hercules-0539a1247d909b11a9730a12ff0a72d110371fcb.tar.xz
hercules-0539a1247d909b11a9730a12ff0a72d110371fcb.zip
HPM Hooks Update
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking.Hooks.inc')
-rw-r--r--src/plugins/HPMHooking/HPMHooking.Hooks.inc17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking.Hooks.inc b/src/plugins/HPMHooking/HPMHooking.Hooks.inc
index 89379c79d..aeb6305d6 100644
--- a/src/plugins/HPMHooking/HPMHooking.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking.Hooks.inc
@@ -49660,32 +49660,31 @@ int HP_pc_setriding(struct map_session_data *sd, int flag) {
}
return retVal___;
}
-int HP_pc_setmadogear(struct map_session_data *sd, int flag) {
+void HP_pc_setmadogear(struct map_session_data *sd, int flag) {
int hIndex = 0;
- int retVal___ = 0;
if( HPMHooks.count.HP_pc_setmadogear_pre ) {
- int (*preHookFunc) (struct map_session_data *sd, int *flag);
+ void (*preHookFunc) (struct map_session_data *sd, int *flag);
*HPMforce_return = false;
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setmadogear_pre; hIndex++ ) {
preHookFunc = HPMHooks.list.HP_pc_setmadogear_pre[hIndex].func;
- retVal___ = preHookFunc(sd, &flag);
+ preHookFunc(sd, &flag);
}
if( *HPMforce_return ) {
*HPMforce_return = false;
- return retVal___;
+ return;
}
}
{
- retVal___ = HPMHooks.source.pc.setmadogear(sd, flag);
+ HPMHooks.source.pc.setmadogear(sd, flag);
}
if( HPMHooks.count.HP_pc_setmadogear_post ) {
- int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *flag);
+ void (*postHookFunc) (struct map_session_data *sd, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setmadogear_post; hIndex++ ) {
postHookFunc = HPMHooks.list.HP_pc_setmadogear_post[hIndex].func;
- retVal___ = postHookFunc(retVal___, sd, &flag);
+ postHookFunc(sd, &flag);
}
}
- return retVal___;
+ return;
}
int HP_pc_changelook(struct map_session_data *sd, int type, int val) {
int hIndex = 0;