feat: remove map position
This commit is contained in:
1 parent
9bcb6f8a3d
commit
0786cba82e
2 files changed
+1
-20
No files matched your search
@@ -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();
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user