Skip to content

Commit 629d17d

Browse files
committed
ignore "" (empty-string) wings, pre-space count column in wing chooser table
1 parent 2edd04e commit 629d17d

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ sf-ship-ed-settings.json
99
ENG.ini
1010
npm-debug.log*
1111
desktop.ini
12+
*.zip

release/changes.log

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ ______________________________________________________________________________
22
editor version 2.7.3 (starsector 0.8.1a) [Trylobot]
33

44
FEATURES
5-
- add/remove built-in wings from ships
5+
- SHIP / BUILT-IN WINGS EDITING MODE ADDED
6+
press "1" (ship mode), "D" (load), "N" (built-in wings submodule)
7+
8+
OTHER
9+
- skeleton code / boilerplate necessary for Skin editing has been added,
10+
but this mode doesn't do anything yet (so don't get too excited if you see it in the menus)
11+
- heavy code maintenance / cleanup / refactoring
612

713
______________________________________________________________________________
814
editor version 2.7.2 (starsector 0.8.1a) [Trylobot]

src/TEditor.type.bmx

+1
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ Type TEditor
255255
Else
256256
TCSVLoader.Load( dir+file, "id", stock_wing_stats )
257257
EndIf
258+
stock_wing_stats.Remove("") ' omit this, it is likely a spacer from the raw file data
258259
Local row:TMap
259260
For Local id$ = EachIn stock_wing_stats.Keys()
260261
'scan all rows for multiselect values and save association to variant

src/TModalSetBuiltInWings.type.bmx

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Type TModalSetBuiltInWings Extends TSubroutine
122122
'---------------------------------------------------------
123123
' show how many of each wing are currently equipped to this ship
124124
Local has_wings_count% = data.count_builtin_wings( wing_id )
125-
Local has_wings_count_display$ = ""
125+
Local has_wings_count_display$ = " "
126126
If has_wings_count > 0
127127
has_wings_count_display = "x" + has_wings_count
128128
EndIf

0 commit comments

Comments
 (0)