Someone explain why this doesn't work:
The answer will probably hit me in an hour - I've been doing that lately :(Code:void tile::setCoords (coord* tr, coord* br, coord* bl, coord* tl)
{
std::cout << "assigning [" << tr->x << ", " << tr->y << "]\n";
std::cout << "assigning [" << br->x << ", " << br->y << "]\n";
std::cout << "assigning [" << bl->x << ", " << bl->y << "]\n";
std::cout << "assigning [" << tl->x << ", " << tl->y << "]\n";
coords.topRight->x = tr->x;
coords.topRight->y = tr->y;
coords.bottomRight->x = br->x;
coords.bottomLeft->y = br->y;
coords.bottomLeft->x = bl->x;
coords.bottomLeft->y = bl->y;
coords.topLeft->x = tl->x;
coords.topLeft->y = tl->y;
std::cout << "assigned [" << coords.topRight->x << ", " << coords.topRight->y << "]\n";
std::cout << "assigned [" << coords.bottomRight->x << ", " << coords.bottomRight->y << "]\n";
std::cout << "assigned [" << coords.bottomLeft->x << ", " << coords.bottomLeft->y << "]\n";
std::cout << "assigned [" << coords.topLeft->x << ", " << coords.topLeft->y << "]\n";
}
Either they don't get assigned properly or I'm outputting what I don't mean to - I'm pretty sure it's the former since nothing gets drawn.
