Skip to content

Commit

Permalink
Fix typo that causes inability to change gov
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexxie9952 committed Mar 25, 2024
1 parent 26af7f2 commit 9ffd57d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion freeciv-web/src/main/webapp/javascript/government.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ function update_govt_dialog()
**************************************************************************/
function start_revolution()
{
console.log("start revolution()")
if (requested_gov != -1) {
for (var unit_id in units) {
punit = units[unit_id];
Expand Down Expand Up @@ -240,7 +241,7 @@ function do_worklists(cur_gov_id, new_gov_id)
**************************************************************************/
function set_req_government(event, gov_id)
{
if (metaKey(e)) {
if (metaKey(event)) {
remove_active_dialog("#revolution_dialog");
help_redirect(VUT_GOVERNMENT, gov_id);
return;
Expand All @@ -254,6 +255,7 @@ function set_req_government(event, gov_id)
**************************************************************************/
function send_player_change_government(govt_id)
{
console.log("send_player_change_government")
var packet = {"pid" : packet_player_change_government,
"government" : govt_id };
send_request(JSON.stringify(packet));
Expand Down

0 comments on commit 9ffd57d

Please sign in to comment.