newgrf.c
changeset 3715 b696b84baf30
parent 3714 aa27d8962f6a
child 3728 1e17fb743b49
equal deleted inserted replaced
3714:aa27d8962f6a 3715:b696b84baf30
  2163 			_nfo_line++;
  2163 			_nfo_line++;
  2164 		}
  2164 		}
  2165 	}
  2165 	}
  2166 }
  2166 }
  2167 
  2167 
       
  2168 /* Action 0x0B */
  2168 static void GRFError(byte *buf, int len)
  2169 static void GRFError(byte *buf, int len)
  2169 {
  2170 {
  2170 	/* <0B> <severity> <language-id> <message-id> [<message...> 00] [<data...>] 00 [<parnum>]
  2171 	/* <0B> <severity> <language-id> <message-id> [<message...> 00] [<data...>] 00 [<parnum>]
  2171 	 *
  2172 	 *
  2172 	 * B severity      00: notice, contine loading grf file
  2173 	 * B severity      00: notice, contine loading grf file
  2208 	} else {
  2209 	} else {
  2209 		grfmsg(severity, msgstr[msgid], buf+4);
  2210 		grfmsg(severity, msgstr[msgid], buf+4);
  2210 	}
  2211 	}
  2211 }
  2212 }
  2212 
  2213 
       
  2214 /* Action 0x0C */
  2213 static void GRFComment(byte *buf, int len)
  2215 static void GRFComment(byte *buf, int len)
  2214 {
  2216 {
  2215 	/* <0C> [<ignored...>]
  2217 	/* <0C> [<ignored...>]
  2216 	 *
  2218 	 *
  2217 	 * V ignored       Anything following the 0C is ignored */
  2219 	 * V ignored       Anything following the 0C is ignored */
  2405 			}
  2407 			}
  2406 			break;
  2408 			break;
  2407 	}
  2409 	}
  2408 }
  2410 }
  2409 
  2411 
       
  2412 /* Action 0x0E */
  2410 static void GRFInhibit(byte *buf, int len)
  2413 static void GRFInhibit(byte *buf, int len)
  2411 {
  2414 {
  2412 	/* <0E> <num> <grfids...>
  2415 	/* <0E> <num> <grfids...>
  2413 	 *
  2416 	 *
  2414 	 * B num           Number of GRFIDs that follow
  2417 	 * B num           Number of GRFIDs that follow
  2432 			file->flags &= 0xFFFE;
  2435 			file->flags &= 0xFFFE;
  2433 		}
  2436 		}
  2434 	}
  2437 	}
  2435 }
  2438 }
  2436 
  2439 
       
  2440 /* Action 0x10 */
  2437 static void DefineGotoLabel(byte *buf, int len)
  2441 static void DefineGotoLabel(byte *buf, int len)
  2438 {
  2442 {
  2439 	/* <10> <label> [<comment>]
  2443 	/* <10> <label> [<comment>]
  2440 	 *
  2444 	 *
  2441 	 * B label      The label to define
  2445 	 * B label      The label to define