Less code for bool variable inversion

This commit is contained in:
Andrey Bondrov committed 2014-12-14 00:29:58 +10:00
1 parent 89c6f76456
commit 35d0149162
1 file changed
+1 -4
+1 -4
View File
@@ -949,10 +949,7 @@ const std::set<std::string> &GetSeenPads() {
// Swap direction buttons and left analog axis
void SwapAxis() {
if (g_swapped_keys)
g_swapped_keys = false;
else
g_swapped_keys = true;
g_swapped_keys = !g_swapped_keys;
}
} // KeyMap