Проверено на 0.9.1
1. Баг "якобы починили но на самом деле ничего не починили", боты болтаются в проруби по пол часа что неимоверно бесит.
fheroes2-0.8.3-whilrpoofix.patch
diff -Nuar fheroes2-0.8.3.orig/src/dist/Makefile fheroes2-0.8.3/src/dist/Makefile
--- fheroes2-0.8.3.orig/src/dist/Makefile 2020-11-04 16:40:40.000000000 +0200
+++ fheroes2-0.8.3/src/dist/Makefile 2021-01-14 11:30:23.519909447 +0200
@@ -8,7 +8,8 @@
TARGET := fheroes2
LIBENGINE := ../engine/libengine.a
-CFLAGS := $(CFLAGS) -I../engine
+CFLAGS := $(CFLAGS) -I../engine -I/usr/include/SDL2
+#LDFLAGS := -lSDL2_image -lSDL2 -lSDL2_mixer
LIBENGINE := $(LIBENGINE) ../thirdparty/libsmacker/libsmacker.a
CFLAGS := $(CFLAGS) -I../thirdparty/libsmacker
diff -Nuar fheroes2-0.8.3.orig/src/engine/Makefile fheroes2-0.8.3/src/engine/Makefile
--- fheroes2-0.8.3.orig/src/engine/Makefile 2020-11-04 16:40:40.000000000 +0200
+++ fheroes2-0.8.3/src/engine/Makefile 2021-01-14 11:16:30.369909944 +0200
@@ -3,7 +3,7 @@
# libSDL C++ wrapper engine
TARGET := libengine
-CFLAGS := $(CFLAGS) -I../thirdparty/libsmacker
+CFLAGS := $(CFLAGS) -I../thirdparty/libsmacker -I/usr/include/SDL2
all: $(TARGET).a
diff -Nuar fheroes2-0.8.3.orig/src/fheroes2/ai/ai_hero_action.cpp fheroes2-0.8.3/src/fheroes2/ai/ai_hero_action.cpp
--- fheroes2-0.8.3.orig/src/fheroes2/ai/ai_hero_action.cpp 2020-11-04 16:40:40.000000000 +0200
+++ fheroes2-0.8.3/src/fheroes2/ai/ai_hero_action.cpp 2021-01-14 11:38:23.469909161 +0200
@@ -898,7 +898,7 @@
return;
}
- hero.FadeOut();
+ //hero.FadeOut();
hero.Move2Dest( index_to );
Troop * troop = hero.GetArmy().GetWeakestTroop();
@@ -907,10 +907,10 @@
troop->SetCount( Monster::GetCountFromHitPoints( troop->GetID(), troop->GetHitPoints() - troop->GetHitPoints() * Game::GetWhirlpoolPercent() / 100 ) );
hero.GetPath().Reset();
- if ( AIHeroesShowAnimation( hero, AIGetAllianceColors() ) ) {
- Interface::Basic::Get().GetGameArea().SetCenter( hero.GetCenter() );
- hero.FadeIn();
- }
+// if ( AIHeroesShowAnimation( hero, AIGetAllianceColors() ) ) {
+// Interface::Basic::Get().GetGameArea().SetCenter( hero.GetCenter() );
+// hero.FadeIn();
+// }
hero.ActionNewPosition();
DEBUG( DBG_AI, DBG_INFO, hero.GetName() );
diff -Nuar fheroes2-0.8.3.orig/src/Makefile fheroes2-0.8.3/src/Makefile
--- fheroes2-0.8.3.orig/src/Makefile 2020-11-04 16:40:40.000000000 +0200
+++ fheroes2-0.8.3/src/Makefile 2021-01-14 11:31:25.759909410 +0200
@@ -2,6 +2,8 @@
# project: Free Heroes2
#
+WITH_SDL2=1
+
TARGET := fheroes2
ifdef DEBUG