void mapMenuTeleport ( void )
{
if ( (*(int *)0xBA6774 != 0) )
{
// ty to Racer_S for this
float mapPos[3];
for ( int i = 0; i < (0xAF * 0x28); i += 0x28 )
{
if ( *(short *)(0xBA873D + i) == 4611 )
{
float *pos = (float *)( 0xBA86F8 + 0x28 + i );
mapPos[0] = *pos;
mapPos[1] = *( pos + 1 );
mapPos[2] = GAME->GetWorld()->FindGroundZForPosition(pos[0], pos[1]) + 2.0f;
PEDSELF->Teleport(mapPos[0], mapPos[1], mapPos[2]);
}
}
}
}