diff --git a/src/editor/editloop.cpp b/src/editor/editloop.cpp index 1c0feebad..e0734656f 100644 --- a/src/editor/editloop.cpp +++ b/src/editor/editloop.cpp @@ -123,7 +123,7 @@ local int SelectedPlayer; /// Player selected for draw ** @param y Y map tile coordinate. ** @param tile Tile type to edit. */ -local void ChangeTile(int x, int y, int tile) +global void ChangeTile(int x, int y, int tile) { MapField *mf; diff --git a/src/editor/edmap.cpp b/src/editor/edmap.cpp index ab1b6d5c9..ded338d36 100644 --- a/src/editor/edmap.cpp +++ b/src/editor/edmap.cpp @@ -35,11 +35,10 @@ #include <limits.h> #include "freecraft.h" +#include "editor.h" #include "map.h" #include "minimap.h" -extern void ChangeTile(int x, int y, int tile); - /*---------------------------------------------------------------------------- -- Defines ----------------------------------------------------------------------------*/ diff --git a/src/include/editor.h b/src/include/editor.h index 334fd36fc..80d780c57 100644 --- a/src/include/editor.h +++ b/src/include/editor.h @@ -57,6 +57,9 @@ extern void EditorCclRegister(void); /// Update surroundings for tile changes. extern void EditorTileChanged(int x, int y); + /// Change tile. +extern void ChangeTile(int x, int y, int tile); + //@} #endif // !__EDITOR_H__