equal
deleted
inserted
replaced
1667 } |
1667 } |
1668 } |
1668 } |
1669 |
1669 |
1670 /* Calculate the loading indicator fill percent and display */ |
1670 /* Calculate the loading indicator fill percent and display */ |
1671 if (_patches.loading_indicators && _game_mode != GM_MENU && v->owner == _local_player) { |
1671 if (_patches.loading_indicators && _game_mode != GM_MENU && v->owner == _local_player) { |
1672 int percent = CalcPercentVehicleFilled(v); |
1672 StringID percent_up_down = STR_NULL; |
|
1673 int percent = CalcPercentVehicleFilled(v, &percent_up_down); |
1673 if (v->fill_percent_te_id == INVALID_TE_ID) { |
1674 if (v->fill_percent_te_id == INVALID_TE_ID) { |
1674 v->fill_percent_te_id = ShowFillingPercent(v->x_pos, v->y_pos, v->z_pos + 20, percent); |
1675 v->fill_percent_te_id = ShowFillingPercent(v->x_pos, v->y_pos, v->z_pos + 20, percent, percent_up_down); |
1675 } else { |
1676 } else { |
1676 UpdateFillingPercent(v->fill_percent_te_id, percent); |
1677 UpdateFillingPercent(v->fill_percent_te_id, percent, percent_up_down); |
1677 } |
1678 } |
1678 } |
1679 } |
1679 |
1680 |
1680 v->load_unload_time_rem = unloading_time; |
1681 v->load_unload_time_rem = unloading_time; |
1681 |
1682 |