Wargus / war1gus

Importer and scripts for Warcraft: Orcs and Humans
GNU General Public License v2.0
102 stars 13 forks source link

Solo game - AI freezes after scenario restart #408

Closed asbernardi closed 1 year ago

asbernardi commented 2 years ago

Hi! If you play a 'solo game' and restart scenario, then AI freezes. It only harvests gold once and freezes. It happens at least in following maps:

Thanks!

Lagi7 commented 2 years ago

also happen if you go back to menu and start new solo game. You need to restart the game.

timfelgentreff — Wczoraj o 21:21 yeah, some variable isn't reset properly after the game. not sure what it is, something in lua definitely

timfel commented 2 years ago

we need to add this to the end of wc1.lua (copied from wc2.lua in wargus)


function CleanGame_Lua()
    print("game ends")
    ReInitAiGameData()  
end
timfel commented 1 year ago

Fixed