newgrf_engine.c
changeset 5174 0f31845853d3
parent 5172 285d1ab82403
child 5175 e528d197bbdd
equal deleted inserted replaced
5173:91e541fbae4e 5174:0f31845853d3
   580 				while (u->next != NULL && (variable == 0x40 || u->next->engine_type == v->engine_type)) {
   580 				while (u->next != NULL && (variable == 0x40 || u->next->engine_type == v->engine_type)) {
   581 					chain_after++;
   581 					chain_after++;
   582 					u = u->next;
   582 					u = u->next;
   583 				}
   583 				}
   584 
   584 
   585 				return chain_before | chain_after << 8 | (chain_before + chain_after) << 16;
   585 				return chain_before | chain_after << 8 | (chain_before + chain_after + (variable == 0x41)) << 16;
   586 			}
   586 			}
   587 
   587 
   588 		case 0x42: { /* Consist cargo information */
   588 		case 0x42: { /* Consist cargo information */
   589 			/* XXX Missing support for common refit cycle and property 25 */
   589 			/* XXX Missing support for common refit cycle and property 25 */
   590 			const Vehicle *u;
   590 			const Vehicle *u;