Important Dates

Latest Posts

Topic: Production times

palino
Avatar
Topic Opener
Joined: 2022-12-19, 08:06
Posts: 14
OS: Windows 11
Version: master
Ranking
Pry about Widelands
Posted at: 2023-01-31, 00: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, 23:16
Posts: 2724
Ranking
One Elder of Players
Location: Bavaria
Posted at: 2023-01-31, 15: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