The Forum Rules and Guidelines
Our forum has Rules and Guidelines. Please, be kind and read them ;).

Bug in with air vs air_wt

Started by maxim13, August 30, 2022, 10:33:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


In source code:

// returns a string with the "official name of the waytype"
const char *weg_t::waytype_to_string(waytype_t wt)
   switch(wt) {
      case tram_wt:        return "tram_track";
      case track_wt:       return "track";
      case monorail_wt:    return "monorail_track";
      case maglev_wt:      return "maglev_track";
      case narrowgauge_wt: return "narrowgauge_track";
      case road_wt:        return "road";
      case water_wt:       return "water";
      case air_wt:         return "air_wt";
         // keep compiler happy; should never reach here anyway
   return "invalid waytype";

So if you want correctly set speed bonuses for airline you should write:





Hmm, I have taken a look at other paksets and no one use "air_wt". Thus, we should change the source code instead so it returns "air" and not "air_wt".

I have traced back the issue and it seems it was changed in r9208


However, that change was not originally in the patch, and was added due to a translation issue as explained here:


So, I have taken TurfIt suggestion and changed the term "Air" to "Aircraft" and "air_wt" back to "air" in r10726. Also changed the objects in Simutranslator.