small syntax change
This commit is contained in:
@@ -4,7 +4,8 @@
|
||||
#include <cstdio>
|
||||
|
||||
// Convert a pivot coordinate (bottom-left) to the top-left draw position
|
||||
PlayerPosition get_aligned_frame_position(PlayerPosition base, int frame_index) {
|
||||
PlayerPosition get_aligned_frame_position(PlayerPosition base, PlayerFrame frame) {
|
||||
int frame_index = static_cast<int>(frame);
|
||||
if (frame_index < 0 || frame_index >= PLAYER_FRAME_COUNT)
|
||||
frame_index = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user