summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-12-16 08:59:03 +0300
committerAndrei Karas <akaras@inbox.ru>2018-12-16 08:59:03 +0300
commit4b2e8684a9874ba435197936a4a9220510ff671f (patch)
tree11a7121f30031a2a850015eced3803f060514fa3 /src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
parentad608a2b826a792834531bfe54ae6b5a12692f50 (diff)
downloadhercules-4b2e8684a9874ba435197936a4a9220510ff671f.tar.gz
hercules-4b2e8684a9874ba435197936a4a9220510ff671f.tar.bz2
hercules-4b2e8684a9874ba435197936a4a9220510ff671f.tar.xz
hercules-4b2e8684a9874ba435197936a4a9220510ff671f.zip
Update HPM.
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking_map.Hooks.inc')
-rw-r--r--src/plugins/HPMHooking/HPMHooking_map.Hooks.inc26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
index 6fab14490..32196d061 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
@@ -29225,6 +29225,32 @@ void HP_clif_camera_change(struct map_session_data *sd, float range, float rotat
}
return;
}
+void HP_clif_pCameraInfo(int fd, struct map_session_data *sd) {
+ int hIndex = 0;
+ if (HPMHooks.count.HP_clif_pCameraInfo_pre > 0) {
+ void (*preHookFunc) (int *fd, struct map_session_data **sd);
+ *HPMforce_return = false;
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCameraInfo_pre; hIndex++) {
+ preHookFunc = HPMHooks.list.HP_clif_pCameraInfo_pre[hIndex].func;
+ preHookFunc(&fd, &sd);
+ }
+ if (*HPMforce_return) {
+ *HPMforce_return = false;
+ return;
+ }
+ }
+ {
+ HPMHooks.source.clif.pCameraInfo(fd, sd);
+ }
+ if (HPMHooks.count.HP_clif_pCameraInfo_post > 0) {
+ void (*postHookFunc) (int fd, struct map_session_data *sd);
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCameraInfo_post; hIndex++) {
+ postHookFunc = HPMHooks.list.HP_clif_pCameraInfo_post[hIndex].func;
+ postHookFunc(fd, sd);
+ }
+ }
+ return;
+}
void HP_clif_item_preview(struct map_session_data *sd, int n) {
int hIndex = 0;
if (HPMHooks.count.HP_clif_item_preview_pre > 0) {