Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More vehicle construction space #2160

Closed
temp1221 opened this issue Jul 23, 2013 · 0 comments

Comments

Projects
None yet
1 participant
@temp1221
Copy link

commented Jul 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

//        x1      x2
// y1 ----+------+--
//        |      |
// y2 ----+------+
//               |
//               |
winw1 = 32;
winw2 = 25;
winh1 = 3;
winh2 = 30;

-----------------------------//--------------------------------------
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.