-
-
Notifications
You must be signed in to change notification settings - Fork 493
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
Maybe fixes #1342 #2645
Maybe fixes #1342 #2645
Conversation
a) Explain yourself again: supertux/src/object/moving_sprite.cpp Lines 106 to 111 in 7ec3cd2
b) Can this have any side effects? |
|
#1342 should have been fixed on master, does it still change? |
Yes. Otherwise, I wouldn't have made that PR. |
Found the issue. It's because Indeed, the problem is in this function:
The aim is that it provides whether a custom sprite has been found when constructing the I am wondering what different solution to have for this problem. One which makes it check if the sprite has been found the first time |
Right now I'm trying a potential solution by checking if |
The thing is: pure functions should never change the status of an object and the name of the function (has_found_sprite) suggests that it is a pure function. |
I agree, it was a very bad hack. |
Can you try out #2646? |
IDK if your solution is better. But I'm gonna close it in favour of yours. |
No description provided.