Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 94f420ed authored by Dave Mankoff's avatar Dave Mankoff
Browse files

Fix deprecation errors in EasterEgg.

These errors block an upgrade to Kotlin 2.1.

Bug: 399463072 
Flag: EXEMPT minor refactor
Test: m EasterEgg
Change-Id: I8d1c4d299af5621ea27161f5015ab9526332ea39
parent bc85e45d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ class Autopilot(val ship: Spacecraft, val universe: Universe) : Entity {
            if (enabled)
                listOf(
                        "---- AUTOPILOT ENGAGED ----",
                        "TGT: " + (target?.name?.toUpperCase() ?: "SELECTING..."),
                        "TGT: " + (target?.name?.uppercase() ?: "SELECTING..."),
                        "EXE: $strategy" + if (debug.isNotEmpty()) " ($debug)" else "",
                    )
                    .joinToString("\n")
+2 −2
Original line number Diff line number Diff line
@@ -236,8 +236,8 @@ fun Telemetry(universe: Universe, showControls: Boolean) {
                                    ((closest.pos - pos).mag() - closest.radius).toInt()
                                listOfNotNull(
                                        landing?.let {
                                            "LND: ${it.planet.name.toUpperCase()}\n" +
                                                "JOB: ${it.text.toUpperCase()}"
                                            "LND: ${it.planet.name.uppercase()}\n" +
                                                "JOB: ${it.text.uppercase()}"
                                        }
                                            ?: if (distToClosest < 10_000) {
                                                "ALT: $distToClosest"