-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Three Fixes #193
Three Fixes #193
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,7 +114,9 @@ function Universe:CreateShip(system, pos, shipObject) | |
ship:setName(shipObject.shipName) | ||
|
||
-- Insert ship into this star system | ||
local spawnPosition = pos or Config.gen.origin | ||
local spawnPosition = ship:getPos() -- use semi-randomly generated position from spawnShip() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I must have been pretty tired when i approved this :D - now that i think of this it´s kinda a bad fix, also generating a ship was working before, better we fix the bug u got in hud.lua instead There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. also this change now bugs out the camera in that generation screen |
||
if pos then spawnPosition = pos end -- unless a position was explicitly provided, in which case use that position | ||
|
||
ship:setPos(spawnPosition) | ||
ship:setFriction(shipObject.friction) | ||
ship:setSleepThreshold(shipObject.sleepThreshold[1], shipObject.sleepThreshold[2]) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it´s prob better to use a multiline comment so that the formatter doesn´t destroy it again ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually did at first, and changed it back, because my editor didn't like it. Updated now.