rail_gui.c
changeset 4171 5c6e60c392c3
parent 4077 d4d440dd8925
child 4344 7e123fec5b0b
equal deleted inserted replaced
4170:81bafc4dd1b9 4171:5c6e60c392c3
   553 
   553 
   554 /** Configures the rail toolbar for railtype given
   554 /** Configures the rail toolbar for railtype given
   555  * @param railtype the railtype to display
   555  * @param railtype the railtype to display
   556  * @param w the window to modify
   556  * @param w the window to modify
   557  */
   557  */
   558 static void SetupRailToolbar(RailType railtype, Window* w)
   558 static void SetupRailToolbar(RailType railtype, Window *w)
   559 {
   559 {
   560 	const RailtypeInfo *rti = GetRailTypeInfo(railtype);
   560 	const RailtypeInfo *rti = GetRailTypeInfo(railtype);
   561 
   561 
   562 	assert(railtype < RAILTYPE_END);
   562 	assert(railtype < RAILTYPE_END);
   563 	w->widget[RTW_CAPTION].unkA = rti->strings.toolbar_caption;
   563 	w->widget[RTW_CAPTION].unkA = rti->strings.toolbar_caption;