LogicAndTrick / sledge-formats

C# parsers and formats for Half-Life 1 and related engines.
MIT License
71 stars 10 forks source link

Add dummy texture if texture offset is negative #12

Closed SamVanheer closed 1 year ago

SamVanheer commented 1 year ago

This PR changes Textures lump behavior when reading BSP files to read textures with negative offsets as a dummy texture.

Note that this does not handle negative offsets other than -1 as a fatal error. I suggest adding exception types for parse errors so library users can handle them differently.

Resolves LogicAndTrick/sledge-formats#10

LogicAndTrick commented 1 year ago

Looks good, new versions should be pushed to nuget.