Skip to content

Commit

Permalink
fix an erroneous variable renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
Caldfir committed Sep 8, 2013
1 parent ecc372f commit 1408b04
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ void parseConfigLine( string line )
string result = parseStrFromLine( "WINDOWED", line );
ssConfig.Fullscreen = (result == "NO");
}
if( line.find("[Size_XY") != -1) {
int value = parseIntFromLine( "Size_XY", line );
if( line.find("[SEGMENTSIZE_XY") != -1) {
int value = parseIntFromLine( "SEGMENTSIZE_XY", line );
if(value < 1) {
value = DEFAULT_Size;
value = DEFAULT_SIZE;
}
if(value > 100) {
value = 100;
Expand All @@ -90,10 +90,10 @@ void parseConfigLine( string line )
ssState.Size.x = value+2;
ssState.Size.y = value+2;
}
if( line.find("[Size_Z") != -1) {
int value = parseIntFromLine( "Size_Z", line );
if( line.find("[SEGMENTSIZE_Z") != -1) {
int value = parseIntFromLine( "SEGMENTSIZE_Z", line );
if(value < 1) {
value = DEFAULT_Size_Z;
value = DEFAULT_SIZE_Z;
}
ssState.Size.z = value;
}
Expand Down
4 changes: 2 additions & 2 deletions common.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ using namespace df::enums;
#define SPRITEHEIGHT (TILETOPHEIGHT + WALLHEIGHT)
#define WALL_CUTOFF_HEIGHT 15

#define DEFAULT_Size 20
#define DEFAULT_Size_Z 6
#define DEFAULT_SIZE 20
#define DEFAULT_SIZE_Z 6
#define MAPNAVIGATIONSTEP 1
#define MAPNAVIGATIONSTEPBIG 10

Expand Down
6 changes: 3 additions & 3 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,9 @@ static void * stonesense_thread(ALLEGRO_THREAD * main_thread, void * parms)
ssConfig.Fullscreen = FULLSCREEN;
ssState.ScreenH = RESOLUTION_HEIGHT;
ssState.ScreenW = RESOLUTION_WIDTH;
ssState.Size.x = DEFAULT_Size;
ssState.Size.y = DEFAULT_Size;
ssState.Size.z = DEFAULT_Size_Z;
ssState.Size.x = DEFAULT_SIZE;
ssState.Size.y = DEFAULT_SIZE;
ssState.Size.z = DEFAULT_SIZE_Z;
ssConfig.show_creature_names = true;
ssConfig.show_osd = true;
ssConfig.show_keybinds = false;
Expand Down

0 comments on commit 1408b04

Please sign in to comment.