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 #862429 ยป sdl_standard.patch

Sveinung Kvilhaugsvik, 2020-02-29 12:43 PM

View differences:

client/gui-sdl2/action_dialog.c
{
const struct research *presearch, *vresearch;
struct city *pVcity = pWidget->data.city;
int id = MAX_ID - pWidget->ID;
int id = pDiplomat_Dlg->actor_unit_id;
struct player *pVictim = NULL;
struct CONTAINER *pCont;
struct widget *pBuf = NULL;
......
static int spy_sabotage_unit_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int diplomat_id = MAX_ID - pWidget->ID;
int diplomat_id = pDiplomat_Dlg->actor_unit_id;
int target_id = pWidget->data.unit->id;
popdown_diplomat_dialog();
......
static int spy_sabotage_unit_esc_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int diplomat_id = MAX_ID - pWidget->ID;
int diplomat_id = pDiplomat_Dlg->actor_unit_id;
int target_id = pWidget->data.unit->id;
popdown_diplomat_dialog();
......
static int heal_unit_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int actor_id = MAX_ID - pWidget->ID;
int actor_id = pDiplomat_Dlg->actor_unit_id;
int target_id = pWidget->data.unit->id;
popdown_diplomat_dialog();
......
static int transport_embark_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int actor_id = MAX_ID - pWidget->ID;
int actor_id = pDiplomat_Dlg->actor_unit_id;
int target_id = pWidget->data.unit->id;
popdown_diplomat_dialog();
......
static int transport_board_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int actor_id = MAX_ID - pWidget->ID;
int actor_id = pDiplomat_Dlg->actor_unit_id;
int target_id = pWidget->data.unit->id;
popdown_diplomat_dialog();
......
static int transport_unload_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int actor_id = MAX_ID - pWidget->ID;
int actor_id = pDiplomat_Dlg->actor_unit_id;
int target_id = pWidget->data.unit->id;
popdown_diplomat_dialog();
......
static int transport_alight_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int actor_id = MAX_ID - pWidget->ID;
int actor_id = pDiplomat_Dlg->actor_unit_id;
int target_id = pWidget->data.unit->id;
popdown_diplomat_dialog();
......
static int disembark1_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int actor_id = MAX_ID - pWidget->ID;
int actor_id = pDiplomat_Dlg->actor_unit_id;
int target_id = pWidget->data.tile->index;
popdown_diplomat_dialog();
......
static int disembark2_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int actor_id = MAX_ID - pWidget->ID;
int actor_id = pDiplomat_Dlg->actor_unit_id;
int target_id = pWidget->data.tile->index;
popdown_diplomat_dialog();
......
static int capture_units_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int actor_id = MAX_ID - pWidget->ID;
int actor_id = pDiplomat_Dlg->actor_unit_id;
int target_id = tile_index(pWidget->data.tile);
popdown_diplomat_dialog();
......
static int expel_unit_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int actor_id = MAX_ID - pWidget->ID;
int actor_id = pDiplomat_Dlg->actor_unit_id;
int target_id = pWidget->data.unit->id;
popdown_diplomat_dialog();
......
static int bombard_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int actor_id = MAX_ID - pWidget->ID;
int actor_id = pDiplomat_Dlg->actor_unit_id;
int target_id = tile_index(pWidget->data.tile);
popdown_diplomat_dialog();
......
static int found_city_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int actor_id = MAX_ID - pWidget->ID;
int actor_id = pDiplomat_Dlg->actor_unit_id;
popdown_diplomat_dialog();
dsend_packet_city_name_suggestion_req(&client.conn,
......
static int transform_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int actor_id = MAX_ID - pWidget->ID;
int actor_id = pDiplomat_Dlg->actor_unit_id;
int target_id = pWidget->data.tile->index;
popdown_diplomat_dialog();
......
static int cultivate_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int actor_id = MAX_ID - pWidget->ID;
int actor_id = pDiplomat_Dlg->actor_unit_id;
int target_id = pWidget->data.tile->index;
popdown_diplomat_dialog();
......
static int plant_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int actor_id = MAX_ID - pWidget->ID;
int actor_id = pDiplomat_Dlg->actor_unit_id;
int target_id = pWidget->data.tile->index;
popdown_diplomat_dialog();
......
static int pillage_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int actor_id = MAX_ID - pWidget->ID;
int actor_id = pDiplomat_Dlg->actor_unit_id;
int target_id = pWidget->data.tile->index;
int sub_target_id = pDiplomat_Dlg->target_extra_id;
......
static int road_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int actor_id = MAX_ID - pWidget->ID;
int actor_id = pDiplomat_Dlg->actor_unit_id;
int target_id = pWidget->data.tile->index;
int sub_target_id = pDiplomat_Dlg->target_extra_id;
......
static int base_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int actor_id = MAX_ID - pWidget->ID;
int actor_id = pDiplomat_Dlg->actor_unit_id;
int target_id = pWidget->data.tile->index;
int sub_target_id = pDiplomat_Dlg->target_extra_id;
......
static int mine_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int actor_id = MAX_ID - pWidget->ID;
int actor_id = pDiplomat_Dlg->actor_unit_id;
int target_id = pWidget->data.tile->index;
int sub_target_id = pDiplomat_Dlg->target_extra_id;
......
static int irrigate_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int actor_id = MAX_ID - pWidget->ID;
int actor_id = pDiplomat_Dlg->actor_unit_id;
int target_id = pWidget->data.tile->index;
int sub_target_id = pDiplomat_Dlg->target_extra_id;
......
static int nuke_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int actor_id = MAX_ID - pWidget->ID;
int actor_id = pDiplomat_Dlg->actor_unit_id;
int target_id = pWidget->data.tile->index;
popdown_diplomat_dialog();
......
static int attack_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int actor_id = MAX_ID - pWidget->ID;
int actor_id = pDiplomat_Dlg->actor_unit_id;
int target_id = pWidget->data.tile->index;
popdown_diplomat_dialog();
......
static int suicide_attack_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int actor_id = MAX_ID - pWidget->ID;
int actor_id = pDiplomat_Dlg->actor_unit_id;
int target_id = pWidget->data.tile->index;
popdown_diplomat_dialog();
......
static int paradrop_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int actor_id = MAX_ID - pWidget->ID;
int actor_id = pDiplomat_Dlg->actor_unit_id;
int target_id = pWidget->data.tile->index;
popdown_diplomat_dialog();
......
static int disband_unit_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int actor_id = MAX_ID - pWidget->ID;
int actor_id = pDiplomat_Dlg->actor_unit_id;
int target_id = pWidget->data.unit->id;
popdown_diplomat_dialog();
......
static int fortify_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int actor_id = MAX_ID - pWidget->ID;
int actor_id = pDiplomat_Dlg->actor_unit_id;
int target_id = pWidget->data.unit->id;
popdown_diplomat_dialog();
......
static int convert_unit_callback(struct widget *pWidget)
{
if (PRESSED_EVENT(Main.event)) {
int actor_id = MAX_ID - pWidget->ID;
int actor_id = pDiplomat_Dlg->actor_unit_id;
int target_id = pWidget->data.unit->id;
popdown_diplomat_dialog();
    (1-1/1)