Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Commit

Permalink
Fixed some problems with deb
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyrion committed Feb 21, 2018
1 parent 3e23a61 commit c72233e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 182 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,9 @@ CMakeCache.txt
CPackConfig.cmake
CPackSourceConfig.cmake
cmake_install.cmake
*.deb
*.tar.gz
install_manifest.txt
*#
.#*
config.hpp
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set(OPMON_HOMEPAGE "http://http://opmon-game.ga/")
# libsfml is splited in many packages on debian:
# libsfml-xxx2 (until 2.4), then libsfml-xxx2.4
foreach(ARG system audio window graphics)
list(APPEND OPMON_DEBIAN_DEPENDS "libsfml-${ARG}2 (>= 2.3.2+dfsg-1)|libsfml-${ARG}2.4")
list(APPEND OPMON_DEBIAN_DEPENDS "libsfml-${ARG}2 (>= 2.3.2+dfsg-1) | libsfml-${ARG}2.4 | libsfml-dev (>= 2.3.2+dfsg-1)")
endforeach()
string(REPLACE ";" ", " OPMON_DEBIAN_DEPENDS "${OPMON_DEBIAN_DEPENDS}")

Expand Down Expand Up @@ -110,7 +110,7 @@ if (UNIX)

# TODO: put resource files in the correct folder
# Note: trailing slash "bin/" is important.
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data/ DESTINATION share/OpMon)
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data/ DESTINATION local/share/OpMon)
else()
install(TARGETS ${EXECUTABLE_NAME} DESTINATION .)
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data DESTINATION .)
Expand Down
177 changes: 0 additions & 177 deletions install_manifest.txt

This file was deleted.

1 change: 0 additions & 1 deletion src/opmon/start/Gameloop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ namespace OpMon {
_gameScreens.push(first_ctrl);

GameStatus status = GameStatus::CONTINUE;
Model::Data::player.getPosition().setPosition(1, 4);
while(status != GameStatus::STOP) {
status = GameStatus::CONTINUE;

Expand Down
4 changes: 2 additions & 2 deletions src/opmon/view/Overworld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ namespace OpMon {
Overworld::Overworld(const std::string &mapId) {
current = Model::Data::World::maps[mapId];
character.setTexture(Model::Data::Ui::texturePP[(int)Side::TO_DOWN]);
Model::Data::player.tp(mapId, sf::Vector2i(2, 2));
character.setPosition(2 SQUARES - 16, 2 SQUARES);
Model::Data::player.tp(mapId, sf::Vector2i(2, 4));
character.setPosition(2 SQUARES - 16, 4 SQUARES);
camera.setCenter(this->getCharacter().getPosition());
camera.setSize(sf::Vector2f(16 SQUARES, 16 SQUARES));

Expand Down

0 comments on commit c72233e

Please sign in to comment.