The International Simutrans Forum

 

Author Topic: Fix for possible division by zero when running headless server  (Read 510 times)

0 Members and 1 Guest are viewing this topic.

Offline ceeac

  • Devotee
  • *
  • Posts: 269
The code which has the error (in banner_text::draw, line 201/202) is compiled but not executed when using the posix backend, but better be safe than sorry. :)

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10828
  • Languages: De,EN,JP
Re: Fix for possible division by zero when running headless server
« Reply #1 on: May 09, 2020, 12:33:56 PM »
Hmm, one could say the other way round, if there is code executing for graphicless server depending on font height. But either is fine with me. Changed in r9079.