Skip to content

Commit d372319

Browse files
committed
Merge remote-tracking branch 'upstream/master' into loadout_copy_paste
2 parents 0600b63 + bafd7c4 commit d372319

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/Battlescape/Map.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ enum CursorType { CT_NONE, CT_NORMAL, CT_AIM, CT_PSI, CT_WAYPOINT, CT_THROW };
4747
class Map : public InteractiveSurface
4848
{
4949
private:
50-
static const int SCROLL_INTERVAL = 20;
50+
static const int SCROLL_INTERVAL = 15;
5151
static const int BULLET_SPRITES = 35;
5252
Timer *_scrollMouseTimer, *_scrollKeyTimer;
5353
Game *_game;

src/Engine/Options.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,17 @@ void create()
9090
_info.push_back(OptionInfo("soundVolume", &soundVolume, MIX_MAX_VOLUME));
9191
_info.push_back(OptionInfo("musicVolume", &musicVolume, MIX_MAX_VOLUME));
9292
_info.push_back(OptionInfo("language", &language, ""));
93-
_info.push_back(OptionInfo("battleScrollSpeed", &battleScrollSpeed, 12)); // 4, 8, 12, 16, 24
93+
_info.push_back(OptionInfo("battleScrollSpeed", &battleScrollSpeed, 8));
9494
_info.push_back(OptionInfo("battleEdgeScroll", (int*)&battleEdgeScroll, SCROLL_AUTO));
9595
_info.push_back(OptionInfo("battleScrollDragButton", &battleScrollDragButton, SDL_BUTTON_MIDDLE));
9696
_info.push_back(OptionInfo("battleScrollDragInvert", &battleScrollDragInvert, false)); // true drags away from the cursor, false drags towards (like a grab)
9797
_info.push_back(OptionInfo("battleScrollDragTimeTolerance", &battleScrollDragTimeTolerance, 300)); // miliSecond
9898
_info.push_back(OptionInfo("battleScrollDragPixelTolerance", &battleScrollDragPixelTolerance, 10)); // count of pixels
99-
_info.push_back(OptionInfo("battleFireSpeed", &battleFireSpeed, 6)); // 2, 4, 6, 8, 10, 12
100-
_info.push_back(OptionInfo("battleXcomSpeed", &battleXcomSpeed, 30)); // 40, 30, 20, 10, 5, 1
101-
_info.push_back(OptionInfo("battleAlienSpeed", &battleAlienSpeed, 30)); // 40, 30, 20, 10, 5, 1
102-
_info.push_back(OptionInfo("battleInstantGrenade", &battleInstantGrenade, false)); // set to true if you want to play with the alternative grenade handling
103-
_info.push_back(OptionInfo("battleExplosionHeight", &battleExplosionHeight, 0)); //0, 1, 2, 3
99+
_info.push_back(OptionInfo("battleFireSpeed", &battleFireSpeed, 6));
100+
_info.push_back(OptionInfo("battleXcomSpeed", &battleXcomSpeed, 30));
101+
_info.push_back(OptionInfo("battleAlienSpeed", &battleAlienSpeed, 30));
102+
_info.push_back(OptionInfo("battleInstantGrenade", &battleInstantGrenade, false));
103+
_info.push_back(OptionInfo("battleExplosionHeight", &battleExplosionHeight, 0));
104104
_info.push_back(OptionInfo("battleNewPreviewPath", (int*)&battleNewPreviewPath, PATH_NONE)); // requires double-click to confirm moves
105105
_info.push_back(OptionInfo("fpsCounter", &fpsCounter, false));
106106
_info.push_back(OptionInfo("craftLaunchAlways", &craftLaunchAlways, false));

src/Menu/OptionsBattlescapeState.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ OptionsBattlescapeState::OptionsBattlescapeState(Game *game, OptionsOrigin origi
136136
_txtScrollSpeed->setText(tr("STR_SCROLL_SPEED"));
137137

138138
_slrScrollSpeed->setColor(Palette::blockOffset(15)-1);
139-
_slrScrollSpeed->setRange(5, 25);
139+
_slrScrollSpeed->setRange(1, 20);
140140
_slrScrollSpeed->setValue(Options::battleScrollSpeed);
141141
_slrScrollSpeed->onChange((ActionHandler)&OptionsBattlescapeState::slrScrollSpeedChange);
142142
_slrScrollSpeed->setTooltip("STR_SCROLL_SPEED_BATTLE_DESC");
@@ -181,15 +181,15 @@ OptionsBattlescapeState::OptionsBattlescapeState(Game *game, OptionsOrigin origi
181181

182182
_btnArrows->setColor(Palette::blockOffset(15)-1);
183183
_btnArrows->setText(tr("STR_PATH_ARROWS"));
184-
_btnArrows->setPressed(Options::battleNewPreviewPath & PATH_ARROWS);
184+
_btnArrows->setPressed((Options::battleNewPreviewPath & PATH_ARROWS) != 0);
185185
_btnArrows->onMouseClick((ActionHandler)&OptionsBattlescapeState::btnPathPreviewClick);
186186
_btnArrows->setTooltip("STR_PATH_ARROWS_DESC");
187187
_btnArrows->onMouseIn((ActionHandler)&OptionsBattlescapeState::txtTooltipIn);
188188
_btnArrows->onMouseOut((ActionHandler)&OptionsBattlescapeState::txtTooltipOut);
189189

190190
_btnTuCost->setColor(Palette::blockOffset(15)-1);
191191
_btnTuCost->setText(tr("STR_PATH_TIME_UNIT_COST"));
192-
_btnTuCost->setPressed(Options::battleNewPreviewPath & PATH_TU_COST);
192+
_btnTuCost->setPressed((Options::battleNewPreviewPath & PATH_TU_COST) != 0);
193193
_btnTuCost->onMouseClick((ActionHandler)&OptionsBattlescapeState::btnPathPreviewClick);
194194
_btnTuCost->setTooltip("STR_PATH_TIME_UNIT_COST_DESC");
195195
_btnTuCost->onMouseIn((ActionHandler)&OptionsBattlescapeState::txtTooltipIn);

src/Menu/OptionsGeoscapeState.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ OptionsGeoscapeState::OptionsGeoscapeState(Game *game, OptionsOrigin origin) : O
133133
_txtClockSpeed->setText(tr("STR_CLOCK_SPEED"));
134134

135135
_slrClockSpeed->setColor(Palette::blockOffset(15)-1);
136-
_slrClockSpeed->setRange(250, 50);
136+
_slrClockSpeed->setRange(250, 10);
137137
_slrClockSpeed->setValue(Options::geoClockSpeed);
138138
_slrClockSpeed->setTooltip("STR_CLOCK_SPEED_DESC");
139139
_slrClockSpeed->onChange((ActionHandler)&OptionsGeoscapeState::slrClockSpeedChange);

src/Menu/OptionsVideoState.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ OptionsVideoState::OptionsVideoState(Game *game, OptionsOrigin origin) : Options
263263

264264
_btnLockMouse->setColor(Palette::blockOffset(15)-1);
265265
_btnLockMouse->setText(tr("STR_LOCK_MOUSE"));
266-
_btnLockMouse->setPressed(Options::captureMouse);
266+
_btnLockMouse->setPressed(Options::captureMouse == SDL_GRAB_ON);
267267
_btnLockMouse->onMouseClick((ActionHandler)&OptionsVideoState::btnLockMouseClick);
268268
_btnLockMouse->setTooltip("STR_LOCK_MOUSE_DESC");
269269
_btnLockMouse->onMouseIn((ActionHandler)&OptionsVideoState::txtTooltipIn);

0 commit comments

Comments
 (0)