if and else running at the same time

Pages: 12
What does it print if you add this line:
1
2
3
4
5
	std::cerr << "Bottom check:\n";          // add this line
	for (GameObject* obj : handler->getGameObjects()) {
		if (obj->getObjectId() == ObjectID::BLOCK) {
			std::cerr << "    Bottom?  ";      // add a few spaces here for indentation
		...

Last edited on
Topic archived. No new replies allowed.
Pages: 12