The International Simutrans Forum

 

Author Topic: [Bug v3.5] One '=' Sign More  (Read 1597 times)

0 Members and 1 Guest are viewing this topic.

knightly

  • Guest
[Bug v3.5] One '=' Sign More
« on: May 08, 2009, 03:46:17 PM »
Hi James,

A minor bug in haltestelle_t::hole_ab() :

Quote
                  if(waiting_minutes == 0 && welt->get_zeit_ms() != neu.arrival_time)
                  {
                     /*const sint64 TEST_1 = welt->get_zeit_ms();
                     const sint64 TEST_2 = neu.arrival_time;
                     const sint64 DIFFERENCE = TEST_1 - TEST_2;
                     uint8 a = 1 + 1;*/

                     waiting_minutes == 1;
                  }

I suppose this should be assignment rather than equality test?

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18753
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: [Bug v3.5] One '=' Sign More
« Reply #1 on: May 08, 2009, 04:34:04 PM »
Ahh, yes, you're right - thank you for spotting that!

Edit: Fixed in 3.6
« Last Edit: May 09, 2009, 03:19:52 PM by jamespetts »