Project

General

Profile

Feature #488 ยป 0055-packet_investigate_.-Drop-unused-unit_id.patch

Marko Lindqvist, 04/24/2024 09:50 PM

View differences:

common/networking/packets.def
end
PACKET_INVESTIGATE_STARTED = 21; sc, lsend, dsend
UNIT unit_id;
CITY city_id;
end
PACKET_INVESTIGATE_FINISHED = 22; sc, lsend, dsend
UNIT unit_id;
CITY city_id;
end
server/diplomats.c
log_debug("investigate: unit: %d", pdiplomat->id);
dlsend_packet_investigate_started(pplayer->connections, pdiplomat->id, pcity->id);
dlsend_packet_investigate_started(pplayer->connections, pcity->id);
/* Do It... */
update_dumb_city(pplayer, pcity);
......
send_unit_info(NULL, pdiplomat);
}
dlsend_packet_investigate_finished(pplayer->connections, pdiplomat->id, pcity->id);
dlsend_packet_investigate_finished(pplayer->connections, pcity->id);
return TRUE;
}
    (1-1/1)