(svn r10868) [NewGRF_ports] -Fix: seaplaneport.grf missing new method of availability testing. NewGRF_ports
authorrichk
Sun, 12 Aug 2007 17:31:37 +0000
branchNewGRF_ports
changeset 6796 bbfdff6078e2
parent 6795 8a27be8048e3
child 6797 b4df739a13fb
(svn r10868) [NewGRF_ports] -Fix: seaplaneport.grf missing new method of availability testing.
bin/data/seaplaneport.grf
bin/data/sprites/seaplaneport.nfo
Binary file bin/data/seaplaneport.grf has changed
--- a/bin/data/sprites/seaplaneport.nfo	Sun Aug 12 17:30:00 2007 +0000
+++ b/bin/data/sprites/seaplaneport.nfo	Sun Aug 12 17:31:37 2007 +0000
@@ -3,7 +3,7 @@
 // Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
 
 // Length of GRF in sprites
-	0 * 4	 70 00 00 00
+	0 * 4	 72 00 00 00
 // if version of TTDPatch higher than X, skip two sprites
 	1 * 9	 07 8B 04 \7> 02 0A D2 00 02
 // bail out: version too low
@@ -368,13 +368,31 @@
 //small airport available from 1931 (1920+11) to 1975 (1920+55)
 	109 * 14	 02 0D 02 81 01 00 FF 01 00 00 0B 37 00 FF
 
-// Use graphics ID (1 station, ID 0, 0 cargo specific graphics, default cargo = 0)
-	110 * 7	 03 0D 01 00 00 02 00
+//availability date varaction2
+//Oilrig available from 1920 (1920+05) to 2175 (1920+255)
+   110 * 14	 02 0D
+		02 // ID
+		81 01 // Variable 01 (current date)
+		00 FF
+		01
+		01 FF 05 FF  //1925-2175
+		00 FF
+
+   111 * 14	 02 0D
+		03 // ID
+		81 0C // Check variable 0C (callback id)
+		00 FF
+		01
+		02 00 13 13 // Jump to action 2 ID 02 if this is callback 13
+		00 00 // Otherwise return the real sprites
+
+	// Use graphics ID (1 station, ID 0, 3 cargo specific graphics, default cargo = 0)
+   112 * 7	 03 0D 01 00 00 03 00
 
 // Name
 // Set the name of the station; all languages, 1 string, offset of CD 00, because 'generic strings' flag is set it's a word.
-	111 * 24	 04 0D FF 01 00 CD "Seaplane airports" 00
-	112 * 29	 04 0D FF 01 00 CE "Small Seaplane Airport" 00
+	113 * 24	 04 0D FF 01 00 CD "Seaplane airports" 00
+	114 * 29	 04 0D FF 01 00 CE "Small Seaplane Airport" 00
 
 // The Fence Layouts
 //					0F 00 00 01 10 06 67 8A 00 80 // fence west