Skip to content
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

Code cleanup Backpacks #2607

Merged
merged 1 commit into from
Sep 27, 2015
Merged

Code cleanup Backpacks #2607

merged 1 commit into from
Sep 27, 2015

Conversation

commy2
Copy link
Contributor

@commy2 commy2 commented Sep 26, 2015

No description provided.

@commy2 commy2 added the kind/cleanup Release Notes: **CHANGED:** label Sep 26, 2015
@commy2 commy2 added this to the 3.4.0 milestone Sep 26, 2015
@commy2 commy2 self-assigned this Sep 26, 2015
@@ -1,3 +1,3 @@
#include "script_component.hpp"

["backpackOpened", DFUNC(backpackOpened)] call EFUNC(common,addEventHandler);
["backpackOpened", {_this call FUNC(backpackOpened)}] call EFUNC(common,addEventHandler);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've seen you do this in multiple PR's now, and understanding the reason behind this it is a good thing to do.
However I feel like this is fixing the symptoms rather the issue. The issue being, that addEventHandler can only create copies of code, instead of being also be able to reference to existing variables.

Fixing this at the source of the problem might be the better approach.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll take a look at that. But in a later PR to not cause conflicts now.

commy2 added a commit that referenced this pull request Sep 27, 2015
@commy2 commy2 merged commit af24428 into master Sep 27, 2015
@commy2 commy2 deleted the 340cleanupBackpacks branch September 27, 2015 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cleanup Release Notes: **CHANGED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants