Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

formatting

  • Loading branch information...
commit 78b83e24e62af8a69b243966f913b874c8f2668c 1 parent 06843af
@ludamad authored
View
5 eclipse-make.sh
@@ -1,9 +1,4 @@
mkdir -p ../lanarts-eclipse
cd ../lanarts-eclipse
-# Ccache speeds up compilation, a LOT
-if [ -e /usr/lib/ccache ]; then
- export PATH=/usr/lib/ccache:$PATH
-fi
-
cmake -G"Eclipse CDT4 - Unix Makefiles" ../lanarts
View
2  fedora-deps.sh
@@ -1 +1 @@
-sudo yum install SDL-static freetype-devel boost-devel cmake
+sudo yum install SDL-static SDL-image freetype-devel boost-devel cmake
View
6 src/world/objects/player_impl/PlayerInstAttackActions.cpp
@@ -59,8 +59,9 @@ static GameInst* find_closest_from_list(GameState* gs,
}
}
- if (dist)
+ if (dist) {
*dist = mindist;
+ }
return closest;
}
@@ -140,8 +141,9 @@ bool find_safest_square(PlayerInst* p, GameState* gs, Pos& position) {
float dx = p->x - position.x, dy = p->y - position.y;
float dist = sqrt(dx * dx + dy * dy);
return (dist > TILE_SIZE / 2);
- } else
+ } else {
return false;
+ }
}
static int get_targets(GameState* gs, PlayerInst* p, int ax, int ay, int rad,
Please sign in to comment.
Something went wrong with that request. Please try again.