Allow calling init presizing mode from outside viewport.cpp.

This commit is contained in:
Juanjo
2013-06-24 17:35:48 +02:00
committed by pelya
parent b69c4bb7a9
commit 0fffd1dd3c
2 changed files with 2 additions and 1 deletions

View File

@@ -25,6 +25,7 @@ void ResetObjectToPlace();
void VpSelectTilesWithMethod(int x, int y, ViewportPlaceMethod method);
void VpStartPlaceSizing(TileIndex tile, ViewportPlaceMethod method, ViewportDragDropSelectionProcess process);
void VpStartPreSizing();
void VpSetPresizeRange(TileIndex from, TileIndex to);
void VpSetPlaceSizingLimit(int limit);

View File

@@ -2301,7 +2301,7 @@ void VpSetPresizeRange(TileIndex from, TileIndex to)
if (distance > 1) ShowMeasurementTooltips(STR_MEASURE_LENGTH, 1, &distance, TCC_HOVER);
}
static void VpStartPreSizing()
void VpStartPreSizing()
{
_thd.selend.x = -1;
_special_mouse_mode = WSM_PRESIZE;