Input is more responsive. Fixed bug with creating session-players.
This commit is contained in:
@@ -9,4 +9,21 @@ typedef struct {
|
||||
bool left;
|
||||
} Simulation_Game_Input;
|
||||
|
||||
static inline bool simulation_input_equal(Simulation_Game_Input a, Simulation_Game_Input b) {
|
||||
if(a.up != b.up) {
|
||||
return false;
|
||||
}
|
||||
if(a.down != b.down) {
|
||||
return false;
|
||||
}
|
||||
if(a.right != b.right) {
|
||||
return false;
|
||||
}
|
||||
if(a.left != b.left) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user