compassTargetChanged not firing when only mode changes

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
laxori666
Competent
Competent
Posts: 37
Joined: Mon Sep 02, 2013 3:45 am

compassTargetChanged not firing when only mode changes

Post by laxori666 »

So I wrote out the following code here whilst modifying Destination ETA:

Code: Select all

this.compassTargetChanged = function(whom, mode) {
    player.consoleMessage("targetChanged");
It turns out this function doesn't get called when "whom" is the same, but "mode" is different. (e.g. when the ship has the main nav buoy targeted, switching compass mode from 'current target' to that same nav buoy). I'm not sure this is by design but I'd expect the event to fire if the compass mode changes. The in-game effect was that while cycling through the targets, printing out each target (think talkative space compass), it wouldn't print anything out when the mode clearly changed (from a + to an N).. slightly unsettling
Post Reply