Branch: refs/heads/master
Home: https://github.com/Warzone2100/warzone2100
Commit: 53efc73af592b13e2a81b7e81c70e43ef08167db
https://github.com/Warzone2100/warzone2100/commit/53efc73af592b13e2a81b7e81c70e43ef08167db
Author: Thiago Barcala <[email protected]>
Date: 2021-05-22 (Sat, 22 May 2021)
Changed paths:
M data/base/script/rules.js
A data/mp/multiplay/script/rules/events/upgrade.js
M data/mp/multiplay/script/rules/includes.js
M src/qtscript.cpp
M src/qtscript.h
M src/quickjs_backend.cpp
M src/structure.cpp
M src/wzapi.h
Log Message:
-----------
Fix deactivation of research/manufacture buttons
A new event `eventStructureUpgradeStarted` was added. When this event is
triggered for a structure owned by `selectedPlayer`, `reticuleUpdate`
will be called, which will cause the reticule buttons to be deactivated,
in case the upgraded building was the only research facility/factory the
player had.
A call to `intRefreshScreen` was added after a structure starts being
demolished, to update the list of research facilities/factories in the
interface.
_______________________________________________
Warzone2100-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-commits