Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
put [resource] before other content (again); fixes #3345
Now content that is loaded via [load_resource] is placed to the position where the [load_resource] was. This fixes a problem where previously one could not use lua variables/functions created by the [resource][lua] because the engine would put the [lua] tags from the [resource] after the [resource] from the scenario. This time it uses size_t indicies instad of vector iterators to prevent possible bugs arisong from invalidating iterators when the size of the vector changes. This reverts commit b3e1680. In the long run i think it might actually be better to allow [event] and [lua] to have a order/priority attribute similar to lua on_event events. Then this commit would probably not be needed anymore.
- Loading branch information
Showing
4 changed files
with
73 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters