Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. *Read more...*

Feature #825185 ยป 0059-Show-unit-activity-icons-for-ACTIVITY_PLANT-ACTIVITY.patch

Marko Lindqvist, 2019-07-05 05:49 PM

View differences:

client/tilespec.c
s = t->sprites.extras[extra_index(punit->activity_target)].activity;
}
break;
case ACTIVITY_PLANT:
s = t->sprites.unit.plant;
break;
case ACTIVITY_IRRIGATE:
if (punit->activity_target == NULL) {
s = t->sprites.unit.irrigate;
......
s = t->sprites.extras[extra_index(punit->activity_target)].activity;
}
break;
case ACTIVITY_CULTIVATE:
s = t->sprites.unit.irrigate;
break;
case ACTIVITY_POLLUTION:
case ACTIVITY_FALLOUT:
s = t->sprites.extras[extra_index(punit->activity_target)].rmact;
......
FULL_TILE_Y_OFFSET + t->activity_offset_y);
}
break;
case ACTIVITY_PLANT:
ADD_SPRITE(t->sprites.unit.plant,
TRUE, FULL_TILE_X_OFFSET + t->activity_offset_x,
FULL_TILE_Y_OFFSET + t->activity_offset_y);
break;
case ACTIVITY_IRRIGATE:
if (ptask->tgt == NULL) {
ADD_SPRITE(t->sprites.unit.irrigate,
......
FULL_TILE_Y_OFFSET + t->activity_offset_y);
}
break;
case ACTIVITY_CULTIVATE:
ADD_SPRITE(t->sprites.unit.irrigate,
TRUE, FULL_TILE_X_OFFSET + t->activity_offset_x,
FULL_TILE_Y_OFFSET + t->activity_offset_y);
break;
case ACTIVITY_GEN_ROAD:
ADD_SPRITE(t->sprites.extras[extra_index(ptask->tgt)].activity,
TRUE, FULL_TILE_X_OFFSET + t->activity_offset_x,
    (1-1/1)