Skip to content

Commit

Permalink
Linux build workse
Browse files Browse the repository at this point in the history
  • Loading branch information
tatjam committed Mar 21, 2020
1 parent 7fc6ea7 commit 980efda
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 14 deletions.
Binary file modified 7DRL
Binary file not shown.
30 changes: 19 additions & 11 deletions CMakeFiles/7DRL.dir/CXX.includecache
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ libtcod.h
Status.h
/home/tatjam/code/u101/src/Status.h

/home/tatjam/code/u101/src/disembark/BuildingMap.h
libtcod.hpp
-
../defines.h
/home/tatjam/code/u101/src/defines.h

/home/tatjam/code/u101/src/flight/FlightMap.h
vector
-
Expand All @@ -54,6 +60,12 @@ libtcod.h
entity/FlightEntity.h
/home/tatjam/code/u101/src/flight/entity/FlightEntity.h

/home/tatjam/code/u101/src/flight/FlightScene.cpp
FlightScene.h
/home/tatjam/code/u101/src/flight/FlightScene.h
entity/Buildings.h
/home/tatjam/code/u101/src/flight/entity/Buildings.h

/home/tatjam/code/u101/src/flight/FlightScene.h
libtcod.h
-
Expand All @@ -74,9 +86,11 @@ soloud_wav.h
../vehicle/Vehicle.h
/home/tatjam/code/u101/src/vehicle/Vehicle.h

/home/tatjam/code/u101/src/flight/entity/EntityTorpedo.h
/home/tatjam/code/u101/src/flight/entity/Buildings.h
FlightEntity.h
/home/tatjam/code/u101/src/flight/entity/FlightEntity.h
../../disembark/BuildingMap.h
/home/tatjam/code/u101/src/disembark/BuildingMap.h

/home/tatjam/code/u101/src/flight/entity/FlightEntity.h
../../defines.h
Expand Down Expand Up @@ -214,16 +228,6 @@ soloud_wav.h
Workbench.h
/home/tatjam/code/u101/src/vehicle/workbench/Workbench.h

/home/tatjam/code/u101/src/vehicle/workbench/Targeting.cpp
Targeting.h
/home/tatjam/code/u101/src/vehicle/workbench/Targeting.h
../../flight/entity/EntityTorpedo.h
/home/tatjam/code/u101/src/flight/entity/EntityTorpedo.h
../Vehicle.h
/home/tatjam/code/u101/src/vehicle/Vehicle.h
../../flight/FlightScene.h
/home/tatjam/code/u101/src/flight/FlightScene.h

/home/tatjam/code/u101/src/vehicle/workbench/Targeting.h
string
-
Expand Down Expand Up @@ -252,6 +256,10 @@ libtcod/src/libtcod.h
libtcod/libtcod.h
libtcod/src/libtcod/libtcod.h

libtcod/src/libtcod.hpp
libtcod.h
libtcod/src/libtcod.h

libtcod/src/libtcod/bresenham.h
portability.h
libtcod/src/libtcod/portability.h
Expand Down
Binary file modified CMakeFiles/7DRL.dir/src/disembark/EmbarkScene.cpp.o
Binary file not shown.
Binary file modified CMakeFiles/7DRL.dir/src/flight/FlightScene.cpp.o
Binary file not shown.
Binary file modified CMakeFiles/7DRL.dir/src/vehicle/Vehicle.cpp.o
Binary file not shown.
Binary file modified CMakeFiles/7DRL.dir/src/vehicle/workbench/Battery.cpp.o
Binary file not shown.
Binary file modified CMakeFiles/7DRL.dir/src/vehicle/workbench/Sonar.cpp.o
Binary file not shown.
Binary file modified libtcod.so
Binary file not shown.
5 changes: 5 additions & 0 deletions src/disembark/EmbarkScene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ void EmbarkScene::update_entity(float dt, EmbarkMonster* monster)
{
if (is_free_crew(nx, ny))
{

monster->x = nx;
monster->y = ny;
}
Expand Down Expand Up @@ -826,6 +827,8 @@ bool EmbarkScene::is_free_crew(int x, int y)
return false;
}
}

return true;
}

void EmbarkScene::restart()
Expand Down Expand Up @@ -870,6 +873,8 @@ EmbarkMonster::EmbarkMonster(MonsterType type, TCODMap* map)
{
path = new TCODPath(map, 0.0f);

x = 0;
y = 0;
this->seen = false;
this->type = type;
this->walkt = 0.0f;
Expand Down
3 changes: 2 additions & 1 deletion src/flight/FlightScene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,9 @@ We are now going to send the location of all our outposts.\n";
}
}
/*if (ent->get_type() == E_NEST && !((Building*)ent)->is_explored())
{
{
possible_embark = ent;
break;
}*/
}

Expand Down
7 changes: 6 additions & 1 deletion src/vehicle/Vehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,11 @@ void Vehicle::update(float dt)
}
}

if(workbench_open != nullptr && g_key.vk == TCODK_ESCAPE)
{
workbench_open = nullptr;
}

auto old = get_tile();
bool was_breathing = breathing;

Expand Down Expand Up @@ -852,7 +857,7 @@ void Vehicle::draw(TCODConsole* target, int ox, int oy)
selected = nullptr;
}

if (!workbench_open)
if (workbench_open == nullptr)
{
for (int i = 0; i < workbenches.size(); i++)
{
Expand Down
4 changes: 3 additions & 1 deletion src/vehicle/workbench/Battery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ Battery::Battery() : console(50, 50)
bb_to_aux = false;
ba_to_eng = false;
bb_to_eng = false;

aux_to_a = false;
aux_to_b = false;
aux_to_eng = false;
}


Expand Down
1 change: 1 addition & 0 deletions src/vehicle/workbench/Sonar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ Sonar::Sonar(SoLoud::Soloud * soloud) : console(49, 56)
ping.load("ping.wav");
blink = true;
blinkt = 0.5f;
sonar_active = false;
}

Sonar::~Sonar()
Expand Down

0 comments on commit 980efda

Please sign in to comment.