Changeset - r26941:d685f4210585
[Not reviewed]
master
0 1 0
Jonathan G Rennison - 15 months ago 2023-03-01 00:19:39
j.g.rennison@gmail.com
Fix : [NewGRF] Object and road stop ignore property handlers (#10525)

* Fix: IgnoreObjectProperty did not handle object property 0x18

* Fix: IgnoreRoadStopProperty did not handle properties 0x0E - 0x12, 0x15
1 file changed with 7 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/newgrf.cpp
Show inline comments
 
@@ -4059,6 +4059,7 @@ static ChangeInfoResult IgnoreObjectProp
 
		case 0x14:
 
		case 0x16:
 
		case 0x17:
 
		case 0x18:
 
			buf->ReadByte();
 
			break;
 

	
 
@@ -4761,16 +4762,22 @@ static ChangeInfoResult IgnoreRoadStopPr
 
	switch (prop) {
 
		case 0x09:
 
		case 0x0C:
 
		case 0x0F:
 
		case 0x11:
 
			buf->ReadByte();
 
			break;
 

	
 
		case 0x0A:
 
		case 0x0B:
 
		case 0x0E:
 
		case 0x10:
 
		case 0x15:
 
			buf->ReadWord();
 
			break;
 

	
 
		case 0x08:
 
		case 0x0D:
 
		case 0x12:
 
			buf->ReadDWord();
 
			break;
 

	
0 comments (0 inline, 0 general)