(svn r1497) -Fix: [1101179] Crash if generating land while industry window is open. This also happened for towns and the land information window

-Added DeleteWindowByClass() function that deletes all windows of a given class
This commit is contained in:
darkvater
2005-01-13 16:50:20 +00:00
parent 06cc62f40d
commit 61cae70fe5
3 changed files with 19 additions and 3 deletions

View File

@@ -201,6 +201,7 @@ void InvalidateWindow(byte cls, WindowNumber number);
void InvalidateWindowWidget(byte cls, WindowNumber number, byte widget_index);
void InvalidateWindowClasses(byte cls);
void DeleteWindowById(WindowClass cls, WindowNumber number);
void DeleteWindowByClass(WindowClass cls);
void SetObjectToPlaceWnd(int icon, byte mode, Window *w);
void SetObjectToPlace(int icon, byte mode, WindowClass window_class, WindowNumber window_num);