Skip to main content
Topic: Ware Type Check in ware_t (Read 2959 times) previous topic - next topic

Ware Type Check in ware_t

In ware_t cl**** (simware.h) of r2454 :

Quote

   // find out the category ...
   bool is_p****enger() const {  return index==0; }
   bool is_mail() const {  return index==1; }
   bool is_freight() const {  return index>2; }


I suppose the expression in blue should be index>=2?

Re: Ware Type Check in ware_t

Reply #1
No, index 2 is warenbauer_t::nichts (english: nothing). That is the good, that engines can transport ;)

Thank you for posting your doubts.

Re: Ware Type Check in ware_t

Reply #2
Thanks a lot for your swift clarification, gerw ;)