git repos / saland

commit 12ce2c2d

Poul Sander · 2026-01-31 22:24
12ce2c2dd5f97fa6fb4f26395cb8af9d8d97aa4a patch · browse files
parent a430b23ec89ad34b1be5414e4f8054ddd94771ce

Apply changes right away

Changed files

M src/saland/Game.cpp before
diff --git a/src/saland/Game.cpp b/src/saland/Game.cpp index c40e582..fd5a4c8 100644 --- a/src/saland/Game.cpp +++ b/src/saland/Game.cpp
@@ -445,6 +445,10 @@ void Game::Draw(SDL_Renderer* target) {
if (data->topy+screen_height > data->gameRegion.world.tm.height*32+screen_boarder) {
data->topy = data->gameRegion.world.tm.height*32+screen_boarder-screen_height;
}
+ data->human->pants = globalData.player.get_visible_bottom();
+ data->human->hair = globalData.player.get_visible_hair();
+ data->human->race = globalData.player.get_visible_race();
+ data->human->top = globalData.player.get_visible_top();
std::sort(data->gameRegion.placeables.begin(), data->gameRegion.placeables.end(),sort_placeable);
SDL_Texture* texture = globalData.spriteHolder->GetDataHolder().getTexturePtr("terrain");
DrawOuterBorder(target, texture, data->gameRegion.world.tm, data->topx, data->topy, data->gameRegion.outerTile, &globalData.logicalResize);