News:

Simutrans Tools
Know our tools that can help you to create add-ons, install and customize Simutrans.

[Bug v3.5] One '=' Sign More

Started by knightly, May 08, 2009, 03:46:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

knightly

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?

jamespetts

#1
Ahh, yes, you're right - thank you for spotting that!

Edit: Fixed in 3.6
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.