T
T
Tynkute2020-07-05 16:35:21
C++ / C#
Tynkute, 2020-07-05 16:35:21

SFML how does it work?

https://pastebin.com/9Gk7W83E
As you can see, on line 49, an argument is passed to the function, it should have been a function to implement the movement of the "character".
The function does not return anything. But at the same time, the "character" can move.
What is it and why is it so?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Developer, 2020-07-05
@samodum

Some broken code.
If range is passed to movePerson , then it should be used, which is not the case.
In addition, there is no return from an int function.
There's some deceit here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question