Latest Posts

Topic: Production times

palino
Avatar
Topic Opener
Joined: 2022-12-19, 07:06
Posts: 13
OS: Windows 10
Version: 1.1
Ranking
Pry about Widelands
Posted at: 2023-01-30, 23:27

Pull request is here: https://github.com/widelands/widelands/pull/5768

Out of curiosity, where are the 3.6 and 10 sec constants in sources?


Top Quote
hessenfarmer
Avatar
Joined: 2014-12-11, 22:16
Posts: 2649
Ranking
One Elder of Players
Location: Bavaria
Posted at: 2023-01-31, 14:04

palino wrote:

Pull request is here: https://github.com/widelands/widelands/pull/5768

Out of curiosity, where are the 3.6 and 10 sec constants in sources?

PR is reviewed.Nice Work.

the 10 seconds are here: https://github.com/widelands/widelands/blob/076f336b3c22231900d30b05e3d1017b2ab0659f/src/logic/map_objects/tribes/productionsite.cc#L1089
the 3.6 are not a real constant but are calculated from walking speed and distance


Top Quote