Switched to linux, updated sfml, thor.
This commit is contained in:
parent
6418de7774
commit
4b222e9c7a
3 changed files with 3 additions and 3 deletions
|
@ -156,7 +156,7 @@ Game::keyDown(const sf::Event& event) {
|
|||
*/
|
||||
sf::Vector2<float>
|
||||
Game::convertCoordinates(int x, int y) {
|
||||
return mWindow.convertCoords(sf::Vector2i(x, y), mView);
|
||||
return mWindow.mapPixelToCoords(sf::Vector2i(x, y), mView);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -100,7 +100,7 @@ Generator::getEnemySpawns(const sf::IntRect& area) const {
|
|||
for (int y = area.top; y < area.top + area.height; y++) {
|
||||
if (scaled_octave_noise_3d(2, 2, 0.5f, 10.0f, 0, x, y, LAYER_ENEMIES)
|
||||
< 1.0f) {
|
||||
ret.insert(sf::Vector2f(thor::componentwiseProduct(
|
||||
ret.insert(sf::Vector2f(thor::cwiseProduct(
|
||||
findClosestFloor(sf::Vector2i(x, y)), Tile::TILE_SIZE)));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
#include "Weapon.h"
|
||||
|
||||
#include <thor/Vectors.hpp>
|
||||
#include <Thor/Vectors.hpp>
|
||||
|
||||
#include "../World.h"
|
||||
#include "../effects/Bullet.h"
|
||||
|
|
Reference in a new issue