Now systems.cpp is disconnected from levelmanager. That leaves the GUIs and then to completely remove it and clean up the api.
This commit is contained in:
parent
81e25f73bb
commit
d5ff57e025
9 changed files with 106 additions and 89 deletions
|
@ -196,7 +196,7 @@ void Raycaster::sprite_casting(sf::RenderTarget &target) {
|
|||
|
||||
float level = lights[sprite_pos.location.y][sprite_pos.location.x] * PERCENT;
|
||||
|
||||
shared_ptr<sf::Shader> effect = System::sprite_effect($level, rec.entity);
|
||||
shared_ptr<sf::Shader> effect = System::sprite_effect(rec.entity);
|
||||
|
||||
if(effect) {
|
||||
apply_sprite_effect(effect, sprite_width, sprite_height);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue