(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

@@ -139,8 +139,8 @@ void ShowBuildAirToolbar()
{
if (!IsValidPlayer(_current_player)) return;
DeleteWindowById(WC_BUILD_TOOLBAR, 0);
Window *w = AllocateWindowDescFront(&_air_toolbar_desc, 0);
DeleteWindowByClass(WC_BUILD_TOOLBAR);
Window *w = AllocateWindowDescFront(&_air_toolbar_desc, TRANSPORT_AIR);
if (_patches.link_terraform_toolbar) ShowTerraformToolbar(w);
}