Skip to content

Commit

Permalink
Fixed the window size options to more accurately represent the actual…
Browse files Browse the repository at this point in the history
… numbers.

Fixed a typo in the tutorial text.
  • Loading branch information
BurnZeZ authored and BurnZeZ committed Feb 24, 2013
1 parent 5801dfe commit ba34a04
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,14 @@ game::game() :
init_autosave(); // Set up autosave
load_keyboard_settings();

VIEWX = OPTIONS[OPT_VIEWPORT_X] + 1;
VIEWY = OPTIONS[OPT_VIEWPORT_Y] + 1;
VIEWX = OPTIONS[OPT_VIEWPORT_X];
VIEWY = OPTIONS[OPT_VIEWPORT_Y];
if (VIEWX <= 0) {
VIEWX = 1;
}
if (VIEWY <= 0) {
VIEWY = 1;
}
TERRAIN_WINDOW_WIDTH = (VIEWX * 2) + 1;
TERRAIN_WINDOW_HEIGHT = (VIEWY * 2) + 1;
// Set up the main UI windows.
Expand Down
2 changes: 1 addition & 1 deletion options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ char option_max_options(option_key id)
break;
case OPT_VIEWPORT_X:
case OPT_VIEWPORT_Y:
ret = 60;
ret = 61; // TODO Set up min/max values so weird numbers don't have to be used.
break;
default:
ret = 2;
Expand Down
2 changes: 1 addition & 1 deletion tutorial.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ another attack. Your dexterity and melee skills are used to determine\n\
whether an attack hits, while strength affects damage.",
"\
Taking damage often causes pain. Small amounts of pain are tolerable, but as\n\
it gets worse youre stats will drop and you will move much slower. To reduce\n\
it gets worse you're stats will drop and you will move much slower. To reduce\n\
pain, take painkillers like codeine, or simply wait it out.",
"\
When you kill a monster it will often leave behind a corpse. Corpses can be\n\
Expand Down

0 comments on commit ba34a04

Please sign in to comment.