diff options
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | source/application/StarMainApplication_sdl.cpp | 2 | ||||
-rw-r--r-- | source/game/StarWorldServer.cpp | 6 |
3 files changed, 10 insertions, 2 deletions
@@ -3,9 +3,9 @@ This is a fork of Starbound. Contributions are welcome! You **must** own a copy of Starbound to use it. Base game assets are not provided for obvious reasons. -It is still **work-in-progress**. You can download the latest test build [here](https://github.com/OpenStarbound/OpenStarbound/releases/latest). +It is still **work-in-progress**. You can download the very latest build from the [Actions](https://github.com/OpenStarbound/OpenStarbound/actions?query=branch%3Amain) tab, or the ocassional releases. -Changes: +## Changes * You can now make .patch files that are just merged in. That's why the patch files in here are unusually simple. * Some Lua functions like getters and setters for player identity values, but not every function from [StarExtensions](https://github.com/StarExtensions/StarExtensions) has been ported yet. * Character swapping (rewrite from StarExtensions, currently command-only: `/swap name` case-insensitive, only substring required) diff --git a/source/application/StarMainApplication_sdl.cpp b/source/application/StarMainApplication_sdl.cpp index 6053613..12a03ee 100644 --- a/source/application/StarMainApplication_sdl.cpp +++ b/source/application/StarMainApplication_sdl.cpp @@ -235,6 +235,8 @@ public: SDL_free(basePath); } + SDL_SetHint(SDL_HINT_IME_SHOW_UI, "1"); + m_signalHandler.setHandleInterrupt(true); m_signalHandler.setHandleFatal(true); diff --git a/source/game/StarWorldServer.cpp b/source/game/StarWorldServer.cpp index 680deaa..9860fb1 100644 --- a/source/game/StarWorldServer.cpp +++ b/source/game/StarWorldServer.cpp @@ -268,6 +268,9 @@ bool WorldServer::addClient(ConnectionId clientId, SpawnTarget const& spawnTarge clientInfo->outgoingPackets.append(make_shared<CentralStructureUpdatePacket>(m_centralStructure.store())); + for (auto& p : m_scriptContexts) + p.second->invoke("addClient", clientId, isLocal); + return true; } @@ -297,6 +300,9 @@ List<PacketPtr> WorldServer::removeClient(ConnectionId clientId) { packets.append(make_shared<WorldStopPacket>("Removed")); + for (auto& p : m_scriptContexts) + p.second->invoke("removeClient", clientId); + return packets; } |