Sidebar fixes, power fix, input fixes.

This commit is contained in:
Ben Lankamp
2020-07-01 22:52:37 +02:00
parent 99c7a550be
commit d0440932d9
12 changed files with 628 additions and 548 deletions
+5 -5
View File
@@ -743,7 +743,7 @@ void Keyboard_Process(KeyNumType & input)
** Center the map about the construction yard or construction vehicle
** if one is present.
*/
if (key != 0 && key == VK_H) {
if (key != 0 && key == Options.KeyBase) {
Unselect_All();
if (PlayerPtr->CurBuildings) {
for (index = 0; index < Buildings.Count(); index++) {
@@ -875,19 +875,19 @@ void Keyboard_Process(KeyNumType & input)
** Scrolls the tactical map in the direction specified.
*/
int distance = CELL_LEPTON_W;
if (key != 0 && key == VK_LEFT) {
if (key != 0 && key == KN_LEFT) {
Map.Scroll_Map(DIR_W, distance, true);
input = KN_NONE;
}
if (key != 0 && key == VK_RIGHT) {
if (key != 0 && key == KN_RIGHT) {
Map.Scroll_Map(DIR_E, distance, true);
input = KN_NONE;
}
if (key != 0 && key == VK_UP) {
if (key != 0 && key == KN_UP) {
Map.Scroll_Map(DIR_N, distance, true);
input = KN_NONE;
}
if (key != 0 && key == VK_DOWN) {
if (key != 0 && key == KN_DOWN) {
Map.Scroll_Map(DIR_S, distance, true);
input = KN_NONE;
}