added choosing spaceship in singleplay

This commit is contained in:
Vlad committed 2026-02-24 20:34:01 +06:00
1 parent ad7294ceea
commit 5216965496
6 files changed
+140 -26

No files matched your search

+8 -2
View File
@@ -454,8 +454,14 @@ namespace ZL
renderer.TranslateMatrix({ 0, -6.f, 0 }); //Ship camera offset
if (shipAlive) {
glBindTexture(GL_TEXTURE_2D, spaceshipTexture->getTexID());
renderer.DrawVertexRenderStruct(spaceship);
if (Environment::shipState.shipType == 1 && cargoTexture) {
glBindTexture(GL_TEXTURE_2D, cargoTexture->getTexID());
renderer.DrawVertexRenderStruct(cargo);
}
else {
glBindTexture(GL_TEXTURE_2D, spaceshipTexture->getTexID());
renderer.DrawVertexRenderStruct(spaceship);
}
}
renderer.PopMatrix();
glEnable(GL_BLEND);