Skip to content

Commit

Permalink
Merge pull request Wargus#558 from Wargus/fix-linux-compilation
Browse files Browse the repository at this point in the history
Fix linuxdeploy and compilation
  • Loading branch information
Jarod42 authored Nov 10, 2023
2 parents 519c1cc + db23af5 commit 6da5e26
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/action/actions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ static void UnitActionsEachSecond(const std::vector<CUnit *> &units)
static const char* toCStr(UnitAction action)
{
switch (action) {
case UnitAction::None: return "None";
case UnitAction::NoAction: return "None";
case UnitAction::Still: return "Still";
case UnitAction::StandGround: return "StandGround";
case UnitAction::Follow: return "Follow";
Expand Down
2 changes: 1 addition & 1 deletion src/include/actions.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
** @see HandleActionTable
*/
enum class UnitAction : char {
None, /// No valid action
NoAction, /// No valid action

Still, /// unit stand still, does nothing
StandGround, /// unit stands ground
Expand Down
4 changes: 2 additions & 2 deletions src/ui/botpanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ static int GetButtonStatus(const ButtonAction &button, int UnderCursor)
}
}

UnitAction action = UnitAction::None;
UnitAction action = UnitAction::NoAction;
switch (button.Action) {
case ButtonCmd::Stop:
action = UnitAction::Still;
Expand Down Expand Up @@ -250,7 +250,7 @@ static int GetButtonStatus(const ButtonAction &button, int UnderCursor)
break;
}
// Simple case.
if (action != UnitAction::None) {
if (action != UnitAction::NoAction) {
if (ranges::all_of(Selected, [&](const CUnit *unit) { return unit->CurrentAction() == action; })) {
res |= IconSelected;
}
Expand Down
2 changes: 1 addition & 1 deletion tools/build_appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ pushd ${GAME_ID}
-DCMAKE_INSTALL_PREFIX=/usr \
-DDATA_PATH=../../share/games/stratagus/${GAME_ID}/ \
-DGAMEDIR=/usr/bin \
-DICONDIR=/usr/share/icons/default/64x64/ \
-DICONDIR=/usr/share/pixmaps/ \
-DGAMEDIRABS=""
make -j$(nproc) install DESTDIR=../../AppDir
popd
Expand Down

0 comments on commit 6da5e26

Please sign in to comment.