diff options
Diffstat (limited to 'procyon/source/evt')
-rw-r--r-- | procyon/source/evt/jmp.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/procyon/source/evt/jmp.c b/procyon/source/evt/jmp.c new file mode 100644 index 0000000..5a93491 --- /dev/null +++ b/procyon/source/evt/jmp.c @@ -0,0 +1,13 @@ +#include <acm/evt.h> +#include <acm/info.h> + +#include <stdint.h> + +bool acm_jmp(uint_least64_t const _sys) { + acm_pldat pldat = acm_dat.pldat; + if (acm_sysdist(_sys) > acm_jmplen(&pldat.ship)) { + return true; + } + acm_dat.pldat = pldat; + return false; +} |