...which sometimes could incorrectly put images in background instead
of foreground.
I didn't see any visible change but possibly fixes or introduces bug with
terrain rules using layer around 0.
...by also skipping any image cache record.
This reduces the index numbers used.
Also temporary disable a log::wml_error about missing ".png" extension
...smaller effective types when they are not translatable.
This patch considerably reduces the memory footprint of WML and speeds it up.
It should not change any WML behavior, except for a few corner cases
detailled below:
- "off" is no longer a synonym for "no" (it wasn't used anyway),
- _"42" is no longer an integer,
- untranslatable "true" and "false" are stored as booleans, hence
displayed as "yes" and "no",
- "042" is now understood as octal notation (hence 34) rather than decimal,
- hexadecimal notation "0x42" is now recognized.
...with fast switching between them. Can be disabled in the editor
settings. Also changed:
* the display class now holds a pointer to the map instead of a
reference, a pointer can be changed which permits the entire MDI
behavior. Related bits were also changed in terrain_builder.
* mouse_handler_base no longer holds a reference to the map
* the map labels class does not hold a gamemap reference, as it can
use the display object to access the map. Also clearing all labels
was exposed as a public member function.
* used scoped_ptrs and forward declarations to avoid having to include
map_label.hpp and terrain_builder.hpp in display.hpp, this reduces
build dependencies quite a bit.
* made get_action_state use the menu index to allow a dynamic menu to
have checkboxes. This entire chunk of code needs a rewrite.
...move into separate cpp/hpp pair. The code under src/ was modified
mainly using a global search-and-replace. This change allows reducing
code dependencies and gets rid of inner-class confusion (parts of the
code had to use "location" when referring to gamemap::location, it is
now consistent across the codebase.)
Now that MSVC 6 is no longer supported start to remove some helper code
to work around problems in that compiler. The first step is to comment
out the code and replace it with new helper code that uses the standard.
The second step is to remove the helper code and fix all callers.
Patch 3/3 for step 2: Remove push_back and fix it's callers.
Now that MSVC 6 is no longer supported start to remove some helper code
to work around problems in that compiler. The first step is to comment
out the code and replace it with new helper code that uses the standard.
The second step is to remove the helper code and fix all callers.
Patch 2/3 for step 2: Remove minimum and maximum and fix all callers.
remove operator overloading for clarity, reintroduce old location
adition as legacy_sum and similar functions, change new location
addition to vector_sum. The old functions are used where the old
operators were used.
Since the terrain builder need to check the existence of a lot of
images, check once all the "terrain" directories and cache which files
exists, instead of searching each file in each directory.