MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / flying

Method flying

source/game/StarSystemWorldClient.cpp:38–42  ·  view source on GitHub ↗

ship is flying if the system world is uninitialized or the ship doesn't have a location

Source from the content-addressed store, hash-verified

36
37// ship is flying if the system world is uninitialized or the ship doesn't have a location
38bool SystemWorldClient::flying() const {
39 if (m_ship)
40 return m_ship->systemLocation().empty();
41 return true;
42}
43
44void SystemWorldClient::update(float dt) {
45 if (!m_ship)

Callers

nothing calls this directly

Calls 2

systemLocationMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected