Commit Graph

35 Commits (3e2fae03bdfcc672cffd342e5fadf06cff41e4e6)

Author SHA1 Message Date
maedhros 6b329f2728 (svn r9037) -Feature: [NewGRF] Add support for Action 13, which allows you to translate
grf-specific texts. The translations will only be shown if you're using a
language with a grf language id and if a string hasn't already been set
specifically for the language you're using.
18 years ago
maedhros b838a90657 (svn r9031) -Codechange: Introduce grfconfig->status, and use it for states that are
mutually exclusive. At the same time, add an INITIALISED state which makes it
possible to check if a grf is not yet active but will be later on during the
GLS_ACTIVATION loading stage.
18 years ago
celestar 5828617a07 (svn r8973) -Feature/Codechange: Changed the internal unit for aircraft velocities to from 8mph to 1km/h (peter1138), also give aircraft realsitic velocities (so that 1km/h is 1km/h independent of vehicle type) (peter1138). Introduce a flag to reduce aircraft speed in holding patterns to some realistic velocity. Use this flag for the city airport for the time being and make use of the different entry points for this airport type. 18 years ago
rubidium 8aacd9874f (svn r8964) -Codechange: use grf_load_string to read action 8 strings instead of trying to do the same manually. 18 years ago
peter1138 6b7a4ba448 (svn r8891) -Codechange: Remove remains of global cargo scheme. All cargo mapping is now dealt with only in NewGRF code, on load where possible. 18 years ago
peter1138 bc968d23f1 (svn r8890) -Codechange: (NewGRF) add cargo translation support to engine var 47 18 years ago
peter1138 51ce6fe672 (svn r8888) -Codechange: Replace hardcoded default cargo bitmasks with a list of cargo labels. 18 years ago
peter1138 719f5c7930 (svn r8886) -Codechange: (NewGRF) Add (partial) cargo translation table support, applied to action 3s only. 18 years ago
peter1138 dfda6b7da4 (svn r8885) -Codechange: (NewGRF) If a default cargo type property is out of range then choose the cargo type from its refit list. 18 years ago
maedhros 4f98bec89b (svn r8881) -Feature: Allow built-in newgrf error messages to be translated, and load custom error messages properly. 18 years ago
peter1138 a14de92f38 (svn r8865) -Codechange: (NewGRF) Ignore 1 byte action 0s during safety check 18 years ago
peter1138 2306a02f75 (svn r8849) -Codechange: Replace hardcoded global/climate cargo mapping tables with dynamically generated data. Change associated code to use new functions. 18 years ago
tron 6206a87bb9 (svn r8843) -Fix
-Fix: Off-by-one error in accessing a buffer (if you start at the second byte you have to subtract one from the size)
Also avoid an unnecessary buffer copy and strlcpy() abuse
NOTE: 0.5 candidate
18 years ago
maedhros 8b6d07cb85 (svn r8838) -Feature: Show newgrf error messages loaded in Action B in the newgrf gui
window. GRFs with an error have a warning symbol shown before the name.
18 years ago
maedhros 7734c3d295 (svn r8831) -Feature: If an action 7/9 leads to skipping the rest of the file, disable the
newgrf if an action 8 hasn't been encountered yet.
18 years ago
maedhros 95ad438f68 (svn r8830) -Feature: Stop loading and disable the current newgrf if a fatal error message
in Action B is encountered. Also be more strict on the values accepted.
18 years ago
peter1138 3d581f4f89 (svn r8826) -Codechange: Replace _cargoc's separate arrays with a regular struct array (with accessor) and implement new initialization method using cargo labels. 18 years ago
maedhros f91ed92648 (svn r8825) -Fix: Make sure strings read from newgrf files are 0 terminated and 0
terminate them if they aren't, so we don't read beyond the end of the
memory allocated for the line.
18 years ago
maedhros 08bad22e4b (svn r8792) -Fix (r6623): Don't check whether a string length is 1 when you already know it isn't. 18 years ago
belugas 8a466c2e2f (svn r8753) -Regression (r8455): Do not unilateraly decide that this engine is a single-headed. Only do it if it previously had no power and that now there is. Or something... 18 years ago
bjarni 89b362a622 (svn r8661) -Fix: [depot windows] Enlarge the blocks in the depot window if a sprite is too big to fit (ships and aircraft only)
-Codechange: depot windows default now makes a 1x1 matrix and resize the window by block size*number of blocks
   This will make less vehicle type specific code and easier to read resizing based on sprite sizes
18 years ago
bjarni d40886903d (svn r8621) -Codechange: assigned new numbers to the VEH_(type) enum so that VEH_Train is 0, VEH_Road is 1 and so on
This means that "v->type" can be used as array indexes instead of VehTypeToIndex() (or "v->type - VEH_Train/0x10 as the code still used in some places)
  Surprisingly this can be done without changing the savegame format
18 years ago
peter1138 0fd8543085 (svn r8526) -Codechange: add stubs for unsupported newgrf station properties 18 years ago
peter1138 fd62bc46d0 (svn r8505) -Codechange: Ensure GRM allocated sprites will be below the original 16384 sprite limit. If not, fail and disable the NewGRF. 18 years ago
peter1138 8b4f046fd1 (svn r8465) -Regression (r8455): Switching from dual to single head should switch to wagon if power is zero. .Or something. 18 years ago
belugas e8af755d7f (svn r8455) -Codechange: Give a more meaningful name (railveh_type)to member flags of RailVehInfo, as well as changing the code to reflect the fact that it was not a flag but rather a one value only variable. Doing so, some evaluations have been simplified.
-Codechange: Add and use RAILVEH_SINGLEHEAD when railveh_type is set to 0, which was implicit before.
-Cleanup: Remove some extraneous parenthesis.
18 years ago
Darkvater fa0b625552 (svn r8429) -Codechange: Add a name for AircraftVehicleInfo subtype helicopter and remove some magic numbers related to the subtype. 18 years ago
tron 3d5acc1450 (svn r8314) -Fix
-Codechange: Move the railtype from EngineInfo to RailVehicleInfo, because having a railtype for non-rail vehicles isn't that useful
18 years ago
peter1138 ca9843424b (svn r8128) -Codechange: Split sprite and palette remap into separate 32 bit values.
This lets us increase the sprite width from 14 to up to 29 bits, 
effectively nulling the old sprite limit. Table changes in next commit.
18 years ago
maedhros 129326425b (svn r8075) -Feature: Add support for variable 7E - subroutines. (peter1138) 18 years ago
KUDr 28e969924b (svn r8066) - Codechange: MallocT(), CallocT(), ReallocT() now return the pointer to allocated memory instead of modifying the pointer given as parameter 18 years ago
Darkvater c0a516b8e5 (svn r8044) Regression (r8038): Crash on allocating bridge memory (peter1138) 18 years ago
peter1138 28712fe837 (svn r8041) -Regression (r7564): [NewGRF] check_length should skip further processing if a length is too short, so give the function a return value 18 years ago
rubidium a7d0cdf95f (svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b. 18 years ago
KUDr 07c30785ab (svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp) 18 years ago