Skip to content

Commit

Permalink
SNAPSHOT OF 0.7 RELEASE
Browse files Browse the repository at this point in the history
- Added icon to the launcher executable
  • Loading branch information
pierreyoda committed Jun 27, 2010
1 parent 006bf5f commit 0962b98
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions O2R_Launcher/O2R_Launcher.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ FORMS += MainWindow.ui \
AboutDialog.ui
RESOURCES += resources.qrc
TRANSLATIONS += dataprivate/o2r-gui_fr.ts
RC_FILE = resources.rc
Binary file added O2R_Launcher/icon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions O2R_Launcher/resources.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
IDI_ICON1 ICON DISCARDABLE "icon.ico"
2 changes: 1 addition & 1 deletion src/Cat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ bool Cat::moveCat(Level &lvl, const sf::Vector2i &mousePos,
{
if (!m_astarAlreadyMoved || (mousePos != prevMousepos || infos.hasChanged))
{
path = *AStarAlgorithm::pathfinding(m_pos, mousePos, lvl);
path l= *AStarAlgorithm::pathfinding(m_pos, mousePos, lvl);
prevMousepos = mousePos;
m_astarAlreadyMoved = true;
}
Expand Down
3 changes: 2 additions & 1 deletion src/Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ void Game::updateCats(const bool &astar)
Cat &cat = *iter;
if (cat.isAlive())
{
if (cat.moveCat(*currentLevel.get(), mouse.pos(), cats, astar) && !mouse.dead())
if (cat.moveCat(*currentLevel.get(), mouse.pos(), cats, astar) &&
!mouse.dead())
mouse.die();
if (cat.cannotMoveNb() > 0)
cat.setImage(gImageManager.getResource("cat_awaiting.png"));
Expand Down

0 comments on commit 0962b98

Please sign in to comment.