Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Animated/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void ChooseNextAction(MascotApp *app) {
}
}

void UpdateMovement(MascotApp *app) {
void UpdateMovement(MascotApp *app){
int speed = 0;
int maxX;
if (!app) return;
Expand Down Expand Up @@ -303,7 +303,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {
if (wParam == kTimerId && app) {
UpdateMovement(app);
AdvanceAnimation(app);
SnapToGround(app);
if(!app->dragging) SnapToGround(app);
RenderMascot(app);
}
return 0;
Expand Down