mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-30 00:12:02 +00:00
Increase the constant MaxLoop to 65536
to support WML events for maps up to 256*256.
This commit is contained in:
parent
16ce5770e8
commit
b163cbbdcd
@ -173,7 +173,16 @@ namespace {
|
|||||||
|
|
||||||
std::set<std::string> used_items;
|
std::set<std::string> used_items;
|
||||||
|
|
||||||
const size_t MaxLoop = 1024;
|
/*
|
||||||
|
jhinrichs, 12.11.2006:
|
||||||
|
This variable controls the maximum number of hexes in a map, that can be parsed by an event.
|
||||||
|
It was set to 1024 before and for larger maps this could become a problem. So it is raised to
|
||||||
|
65536 now, which can feature a map of size 256*256 (maps really shouldn't be bigger than that :-).
|
||||||
|
This constant also controls the maximum number of loops for a WML while loop (hence its name).
|
||||||
|
If this is felt to be too high now, we must split it into two constants, but i don't feel the need
|
||||||
|
at the moment.
|
||||||
|
*/
|
||||||
|
const size_t MaxLoop = 65536;
|
||||||
|
|
||||||
bool events_init() { return screen != NULL; }
|
bool events_init() { return screen != NULL; }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user