forked from Mirrors/openclonk
selecting the clonks via hotkey was all backwards (#1031)
e.g. pressing ctrl+3 selected 1st clonk if there are 3 in the crew
(cherry picked from commit 3a8c8d7c3b
)
stable-5.4
parent
48cc4be206
commit
ba64fda137
|
@ -150,7 +150,7 @@ global func Control2Player(int plr, int ctrl, int x, int y, int strength, bool r
|
|||
if (hotkey > 0)
|
||||
{
|
||||
// valid crew number?
|
||||
var crew = GetCrew(plr,GetCrewCount()-hotkey);
|
||||
var crew = GetCrew(plr,hotkey-1);
|
||||
if (!crew) return false;
|
||||
// stop previously selected crew
|
||||
StopSelected();
|
||||
|
|
Loading…
Reference in New Issue