src/newgrf.cpp
branchgamebalance
changeset 9903 dc85aaa556ae
parent 9896 2473804114de
child 9906 6f41b8713b65
equal deleted inserted replaced
9902:ed8f92929297 9903:dc85aaa556ae
  1410 		case 0x08: /* Cost base factor */
  1410 		case 0x08: /* Cost base factor */
  1411 			FOR_EACH_OBJECT {
  1411 			FOR_EACH_OBJECT {
  1412 				byte factor = grf_load_byte(&buf);
  1412 				byte factor = grf_load_byte(&buf);
  1413 				uint price = gvid + i;
  1413 				uint price = gvid + i;
  1414 
  1414 
  1415 				if (price < NUM_PRICES) {
  1415 				if (price < CEconomy::MAX_PRICE) {
  1416 					SetPriceBaseMultiplier(price, factor);
  1416 					//SetPriceBaseMultiplier(price, factor);
  1417 				} else {
  1417 				} else {
  1418 					grfmsg(1, "GlobalVarChangeInfo: Price %d out of range, ignoring", price);
  1418 					grfmsg(1, "GlobalVarChangeInfo: Price %d out of range, ignoring", price);
  1419 				}
  1419 				}
  1420 			}
  1420 			}
  1421 			break;
  1421 			break;
  3960 	UnloadCustomEngineSprites();
  3960 	UnloadCustomEngineSprites();
  3961 	UnloadCustomEngineNames();
  3961 	UnloadCustomEngineNames();
  3962 	ResetEngineListOrder();
  3962 	ResetEngineListOrder();
  3963 
  3963 
  3964 	// Reset price base data
  3964 	// Reset price base data
  3965 	ResetPriceBaseMultipliers();
  3965 	// ResetPriceBaseMultipliers();
  3966 
  3966 
  3967 	/* Reset the curencies array */
  3967 	/* Reset the curencies array */
  3968 	ResetCurrencies();
  3968 	ResetCurrencies();
  3969 
  3969 
  3970 	/* Reset the house array */
  3970 	/* Reset the house array */