Closed gdeda closed 9 years ago
Yeah, I looked at this and it looks weird. I don't understand this, unless you changed the game speed from the menu in the middle or something.
Some of the functions get the speed values via game_state_get_speed, which gives out values (
Yes, I ended with same conclusion.
unsigned int game_state_get_speed(game_state *gs) { return gs->speed -5 ;
That is causing that discrepancy of values. Anyway, that function is called only in har.c and, by removing that -5 and properly adjust other values, looks like to resolve the issue.
Let me make some PRs to check and propose for.
Much like a question than an issue...
I was working on #290 and making a bigger slowdown on last hit, when I noticed this in the debug messages:
har_take_damage(): Slowdown: Slowing from 5 to 4.
and then:
game_state_call_tick(): Slowdown: Speed back up from 4 to 10.
My question is: why har_take_damage() starts from 5? Shouldn't start from 10 as game_state_call_tick() returns speed to 10? Are there 2 slowdowns working togheter???