-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SUNITEVENT_EventFunc_Handler should take D2C_EventTypes as argument instead of D2C_UnitEventCallbackTypes #129
Conversation
This is used by the reanimate stat to know when the corpse is valid to reanimate, see
This doesn't make sense, why would you call |
I think historically there were confusions between events.txt:
This confirms Would you be ok with fixing the comment and name of the field in |
@Lectem TBH the whole of SUnitEvent.h has poor naming since nothing about it relates to timers (its all trigger based). Might be best to shift that renaming to its own pull request. |
I documented missing event, matching naming used by events.txt in D2R:
Left everything else alone as suggested by Necrolis. |
For some reason enums from
D2C_UnitEventCallbackTypes
were used as arguments forSUNITEVENT_EventFunc_Handler()
. Adjusted also other places where that function was called.Only mystery is
SUNITEVENT_EventFunc_Handler(pGame, 13, pAttacker, 0, 0);
in MonsterMode.cpp called insidesub_6FC641D0()
. Is that unused event?EVENT_DOACTIVE
is not used anywhere. Maybe this is actual bug in D2 itself, whereSUNITEVENT_EventFunc_Handler(pGame, 13, pAttacker, 0, 0);
is called instead ofSUNITEVENT_EventFunc_Handler(pGame, EVENT_DOACTIVE, pAttacker, 0, 0);
?