Changeset - r2876:8ce6e775066c
[Not reviewed]
master
0 1 0
peter1138 - 19 years ago 2006-01-24 09:33:51
peter1138@openttd.org
(svn r3424) - NewGRF fix: Only power should decide whether a rail vehicle is an engine or a wagon. (fixes SHIKI 810 in jpsetw.grf)
1 file changed with 0 insertions and 2 deletions:
0 comments (0 inline, 0 general)
newgrf.c
Show inline comments
 
@@ -252,25 +252,23 @@ static bool RailVehicleChangeInfo(uint e
 
				uint8 runcostfact = grf_load_byte(&buf);
 

	
 
				if (rvi[i].flags & RVI_MULTIHEAD)
 
					runcostfact /= 2;
 

	
 
				rvi[i].running_cost_base = runcostfact;
 
				dewagonize(runcostfact, engine + i);
 
			}
 
		} break;
 
		case 0x0E: { /* Running cost base */
 
			FOR_EACH_OBJECT {
 
				uint32 base = grf_load_dword(&buf);
 

	
 
				switch (base) {
 
					case 0x4C30: rvi[i].running_cost_class = 0; break;
 
					case 0x4C36: rvi[i].running_cost_class = 1; break;
 
					case 0x4C3C: rvi[i].running_cost_class = 2; break;
 
				}
 
				dewagonize(base, engine + i);
 
			}
 
		} break;
 
		case 0x12: { /* Sprite ID */
 
			FOR_EACH_OBJECT {
 
				uint8 spriteid = grf_load_byte(&buf);
 

	
0 comments (0 inline, 0 general)