feat: remove map position

This commit is contained in:
str1k3r committed 2026-09-27 14:44:46 -04:00
1 parent 9bcb6f8a3d
commit 0786cba82e
2 files changed
+1 -20

No files matched your search

-20
View File
@@ -235,28 +235,8 @@ void Minimap::render(shared_ptr<Player> player, Textures *textures, shared_ptr<M
#endif
glPushMatrix();
// glRotatef(0, 1, 0, 0);
glTranslatef(0, 0, -0.06f);
glScalef(1, 1, 1);
// 4J Stu - Don't render the text name, except in debug
//#if 1
//#ifdef _DEBUG
// font->draw(data->id, x, y, 0xff000000);
//#else
// 4J Stu - TU-1 hotfix
// DCR: Render the players current position here instead
if(player != NULL)
{
wchar_t playerPosText[32];
ZeroMemory(&playerPosText, sizeof(wchar_t) * 32);
int posx = floor(player->x);
int posy = floor(player->y);
int posz = floor(player->z);
swprintf(playerPosText, 32, L"X: %d, Y: %d, Z: %d", posx, posy, posz);
font->draw(playerPosText, x, y, Minecraft::GetInstance()->getColourTable()->getColour(eMinecraftColour_Map_Text));
}
//#endif
glPopMatrix();
}
+1
View File
@@ -14,6 +14,7 @@ Bringing the October 10th 2014 Source Leak back down to TU0
- [ ] Adventure Mode
- [ ] Creative Mode
- [ ] Bonus Chests
- [x] Map Position
- [x] Experience
- [ ] Enchanting
- [x] Sprinting