(svn r12939) -Codechange: do not use the window proc to determine whether a toolbar is a rail toolbar, but use the window number.

This commit is contained in:
rubidium
2008-05-04 09:39:16 +00:00
parent ec931ba5c6
commit b35100e2a9
5 changed files with 17 additions and 16 deletions

View File

@@ -232,8 +232,8 @@ void ShowBuildDocksToolbar()
{
if (!IsValidPlayer(_current_player)) return;
DeleteWindowById(WC_BUILD_TOOLBAR, 0);
Window *w = AllocateWindowDesc(&_build_docks_toolbar_desc);
DeleteWindowByClass(WC_BUILD_TOOLBAR);
Window *w = AllocateWindowDescFront(&_build_docks_toolbar_desc, TRANSPORT_WATER);
if (_patches.link_terraform_toolbar) ShowTerraformToolbar(w);
}