equal
deleted
inserted
replaced
1883 |
1883 |
1884 /* The vehicle list windows have been unified. Just some strings need |
1884 /* The vehicle list windows have been unified. Just some strings need |
1885 * to be changed which happens in the WE_CREATE event and resizing |
1885 * to be changed which happens in the WE_CREATE event and resizing |
1886 * some of the windows to the correct size */ |
1886 * some of the windows to the correct size */ |
1887 switch (vehicle_type) { |
1887 switch (vehicle_type) { |
|
1888 default: NOT_REACHED(); |
1888 case VEH_Train: |
1889 case VEH_Train: |
1889 w = AllocateWindowDescFront(&_player_vehicle_list_train_desc, num); |
1890 w = AllocateWindowDescFront(&_player_vehicle_list_train_desc, num); |
1890 if (w != NULL) ResizeWindow(w, 65, 38); |
1891 if (w != NULL) ResizeWindow(w, 65, 38); |
1891 break; |
1892 break; |
1892 case VEH_Road: |
1893 case VEH_Road: |
1897 w = AllocateWindowDescFront(&_player_vehicle_list_ship_desc, num); |
1898 w = AllocateWindowDescFront(&_player_vehicle_list_ship_desc, num); |
1898 break; |
1899 break; |
1899 case VEH_Aircraft: |
1900 case VEH_Aircraft: |
1900 w = AllocateWindowDescFront(&_player_vehicle_list_aircraft_desc, num); |
1901 w = AllocateWindowDescFront(&_player_vehicle_list_aircraft_desc, num); |
1901 break; |
1902 break; |
1902 default: NOT_REACHED(); return; |
|
1903 } |
1903 } |
1904 |
1904 |
1905 if (w != NULL) { |
1905 if (w != NULL) { |
1906 /* Set the minimum window size to the current window size */ |
1906 /* Set the minimum window size to the current window size */ |
1907 w->resize.width = w->width; |
1907 w->resize.width = w->width; |