fix: no carregava correctament data/shapes/jailgames.png si s'executava desde fora del directori de l'executable
This commit is contained in:
@@ -1829,7 +1829,7 @@ void Engine::activateShapeInternal(ShapeType type) {
|
||||
active_shape_ = std::make_unique<AtomShape>();
|
||||
break;
|
||||
case ShapeType::PNG_SHAPE:
|
||||
active_shape_ = std::make_unique<PNGShape>("data/shapes/jailgames.png");
|
||||
active_shape_ = std::make_unique<PNGShape>((getResourcesDirectory() + "/data/shapes/jailgames.png").c_str());
|
||||
break;
|
||||
default:
|
||||
active_shape_ = std::make_unique<SphereShape>(); // Fallback
|
||||
|
||||
Reference in New Issue
Block a user