Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upMore vehicle construction space #2160
Comments
kevingranade
closed this
in
#3853
Oct 25, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
temp1221 commentedJul 23, 2013
May be we can increase vehicle construction space, but it's break normal terminals with 80x25 windows
F.E.
output.h
define FULL_SCREEN_HEIGHT 42
veh_interact.cpp
-----------------------------//--------------------------------------
display_stats ();
display_veh ();
move_cursor (0, 0);
bool finish = false;
while (!finish)
{
char ch = input(); // See keypress.h
int dx, dy;
get_direction (gm, dx, dy, ch);
if (ch == KEY_ESCAPE || ch == 'q' )
finish = true;
else
if (dx != -2 && (dx || dy) &&
cx + dx >= -6 && cx + dx < 26 &&
cy + dy >= -6 && cy + dy < 24)
move_cursor(dx, dy);
else
I'm tested this that's cant cause any bugs, in this versions vehicle rotate around last used vehicle control.