Skip to content

Commit c5620ea

Browse files
committed
Merge branch 'master' into wip-translator
2 parents 69a0e10 + 8615c23 commit c5620ea

File tree

17 files changed

+34
-28
lines changed

17 files changed

+34
-28
lines changed

Editor/common_features/graphicsworkspace.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ void GraphicsWorkspace::focusOutEvent(QFocusEvent *event)
291291
void GraphicsWorkspace::wheelEvent(QWheelEvent *event)
292292
{
293293
int modS = 128;
294-
int modS_h = modS;
294+
// int modS_h = modS;
295295
bool rtl = (qApp->layoutDirection() == Qt::RightToLeft);
296296

297297
if(rtl)
@@ -300,7 +300,7 @@ void GraphicsWorkspace::wheelEvent(QWheelEvent *event)
300300
if((event->modifiers() & Qt::ShiftModifier) != 0)
301301
{
302302
modS *= 2;
303-
modS_h *= 2;
303+
// modS_h *= 2;
304304
}
305305

306306
auto delta = event->angleDelta();

Editor/common_features/json_settings_widget.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ QString JsonSettingsWidget::browseForFileValue(QWidget* target, LineEditType typ
803803
audioPath = music;
804804
});
805805

806-
QObject::connect(&muz, &MusicFileList::updateSongPlay, [this, &root, &audioPath]()->void
806+
QObject::connect(&muz, &MusicFileList::updateSongPlay, [&root, &audioPath]()->void
807807
{
808808
if(MainWinConnect::pMainWin->getPlayMusicAction()->isChecked())
809809
LvlMusPlay::previewCustomMusicAbs(root + audioPath);
@@ -819,12 +819,12 @@ QString JsonSettingsWidget::browseForFileValue(QWidget* target, LineEditType typ
819819
LvlMusPlay::setGain(gain);
820820
});
821821

822-
QObject::connect(&muz, &MusicFileList::playSoundFile, [this, &audioPath](const QString &file)->void
822+
QObject::connect(&muz, &MusicFileList::playSoundFile, [](const QString &file)->void
823823
{
824824
PGE_SfxPlayer::playFile(file);
825825
});
826826

827-
QObject::connect(&muz, &MusicFileList::musicButtonClicked, [this, &root, &audioPath](bool st)->void
827+
QObject::connect(&muz, &MusicFileList::musicButtonClicked, [&root, &audioPath](bool st)->void
828828
{
829829
MainWinConnect::pMainWin->getPlayMusicAction()->setChecked(st);
830830
if(st)
@@ -1236,7 +1236,7 @@ void JsonSettingsWidget::loadLayoutEntries(JsonSettingsWidget::SetupStack setupT
12361236
fileBoxL->addWidget(preview, 0);
12371237

12381238
QObject::connect(preview, static_cast<void(QPushButton::*)(bool)>(&QPushButton::clicked), this,
1239-
[id, it, lineType, root, lookAtEpisode, this](bool)
1239+
[id, it, lineType, root](bool)
12401240
{
12411241
QString file = it->text();
12421242
QString fileNA = file.split('|').first();
@@ -1380,7 +1380,7 @@ void JsonSettingsWidget::loadLayoutEntries(JsonSettingsWidget::SetupStack setupT
13801380
if(button_preview)
13811381
{
13821382
QObject::connect(button_preview, static_cast<void(QToolButton::*)(bool)>(&QToolButton::clicked), this,
1383-
[id, list, lineType, root, lookAtEpisode, this](bool)
1383+
[id, list, lineType, root](bool)
13841384
{
13851385
auto selected = list->selectedItems();
13861386
if(selected.isEmpty())
@@ -1492,7 +1492,7 @@ void JsonSettingsWidget::loadLayoutEntries(JsonSettingsWidget::SetupStack setupT
14921492

14931493
// Opening an editor of item
14941494
QObject::connect(list, &QListWidget::itemDoubleClicked, this,
1495-
[this, list, id, lineType, root, filters, target, dialogTitle, dialogDescription](QListWidgetItem* item)->void
1495+
[this, id, lineType, root, filters, target, dialogTitle, dialogDescription](QListWidgetItem* item)->void
14961496
{
14971497
if(lineType == JSS_LineEdit_Text)
14981498
return;

Editor/editing/_dialogs/itemselectdialog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ void ItemSelectDialog::on_Sel_DiaButtonBox_accepted()
932932
testMusicFile = music;
933933
});
934934

935-
QObject::connect(&musicList, &MusicFileList::updateSongPlay, [this, edit, &testMusicFile]()->void
935+
QObject::connect(&musicList, &MusicFileList::updateSongPlay, [&testMusicFile]()->void
936936
{
937937
if(MainWinConnect::pMainWin->getPlayMusicAction()->isChecked())
938938
LvlMusPlay::previewCustomMusic(MainWinConnect::pMainWin, testMusicFile);
@@ -949,7 +949,7 @@ void ItemSelectDialog::on_Sel_DiaButtonBox_accepted()
949949
});
950950

951951

952-
QObject::connect(&musicList, &MusicFileList::musicButtonClicked, [this, &testMusicFile](bool st)->void
952+
QObject::connect(&musicList, &MusicFileList::musicButtonClicked, [&testMusicFile](bool st)->void
953953
{
954954
MainWinConnect::pMainWin->getPlayMusicAction()->setChecked(st);
955955
if(st)

Editor/editing/_scenes/level/data_manager/lvl_custom_gfx.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
//Search and load custom User's files
2828
void LvlScene::loadUserData(QProgressDialog &progress)
2929
{
30-
int i, total = 0;
30+
int i; //, total = 0;
3131

3232
//UserNPCs uNPC;
3333
QImage tempImg;
@@ -187,7 +187,7 @@ void LvlScene::loadUserData(QProgressDialog &progress)
187187
if(loaded2) bgU.second_image = uBG.second_image;
188188
}
189189

190-
total++;
190+
// total++;
191191
qApp->processEvents(QEventLoop::ExcludeUserInputEvents);
192192
if(progress.wasCanceled())
193193
/*progress.setValue(progress.value()+1);

Editor/main_window/dock/lvl_sctc_props.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ void LvlSectionProps::on_LVLPropsMusicCustomBrowse_clicked()
675675
musicPath = music;
676676
});
677677

678-
QObject::connect(&musicList, &MusicFileList::updateSongPlay, [this, edit, &musicPath]()->void
678+
QObject::connect(&musicList, &MusicFileList::updateSongPlay, [this, &musicPath]()->void
679679
{
680680
if(mw()->getPlayMusicAction()->isChecked())
681681
LvlMusPlay::previewCustomMusic(mw(), musicPath);
@@ -770,7 +770,7 @@ void LvlSectionProps::on_musicSetup_clicked()
770770
musicPath = music;
771771
});
772772

773-
QObject::connect(&set, &CustomMusicSetup::updateSongPlay, [this,edit, &musicPath]()->void
773+
QObject::connect(&set, &CustomMusicSetup::updateSongPlay, [this, &musicPath]()->void
774774
{
775775
if(mw()->getPlayMusicAction()->isChecked())
776776
LvlMusPlay::previewCustomMusic(mw(), musicPath);

Editor/main_window/dock/wld_item_toolbox.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ void WorldItemBox::MusicList_itemClicked(const QModelIndex &item)
382382
customMusicFile = music;
383383
});
384384

385-
QObject::connect(&musicList, &MusicFileList::updateSongPlay, [this, edit, &customMusicFile]()->void
385+
QObject::connect(&musicList, &MusicFileList::updateSongPlay, [this, &customMusicFile]()->void
386386
{
387387
if(mw()->getPlayMusicAction()->isChecked())
388388
LvlMusPlay::previewCustomMusic(mw(), customMusicFile);

Editor/main_window/dock/wld_musicbox_itemset.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ void WorldMusicBoxItemBox::MusicList_itemClicked(const QModelIndex &item)
158158
customMusicFile = music;
159159
});
160160

161-
QObject::connect(&musicList, &MusicFileList::updateSongPlay, [this, edit, &customMusicFile]()->void
161+
QObject::connect(&musicList, &MusicFileList::updateSongPlay, [this, &customMusicFile]()->void
162162
{
163163
if(mw()->getPlayMusicAction()->isChecked())
164164
LvlMusPlay::previewCustomMusic(mw(), customMusicFile);

Engine/scenes/level/player/lvl_player_warps_and_teleports.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,17 +342,22 @@ void LVL_Player::WarpTo(double x, double y, int warpType, int warpDirection, boo
342342
else
343343
{
344344
EventQueueEntry<LVL_Player >playSnd;
345-
playSnd.makeCaller([this]()->void{PGE_Audio::playSoundByRole(obj_sound_role::WarpPipe);
346-
}, 0);
345+
playSnd.makeCaller([]()->void
346+
{
347+
PGE_Audio::playSoundByRole(obj_sound_role::WarpPipe);
348+
}, 0);
347349
m_eventQueue.events.push_back(playSnd);
350+
348351
double pStep = 1.5 / (1000.0 / m_scene->frameDelay());
352+
349353
EventQueueEntry<LVL_Player >warpOut;
350354
warpOut.makeWaiterCond([this, pStep]()->bool
351355
{
352356
m_warpPipeOffset -= pStep;
353357
return m_warpPipeOffset <= 0.0f;
354358
}, false, 0);
355359
m_eventQueue.events.push_back(warpOut);
360+
356361
EventQueueEntry<LVL_Player >endWarping;
357362
endWarping.makeCaller([this]()->void
358363
{

Engine/script/lua_engine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ void LuaEngine::init()
119119
//Add error reporter
120120
if(!m_errorReporterFunc)
121121
{
122-
m_errorReporterFunc = [this](const std::string & errMsg, const std::string & stacktrace)
122+
m_errorReporterFunc = [](const std::string & errMsg, const std::string & stacktrace)
123123
{
124124
pLogWarning("Lua-Error: ");
125125
pLogWarning("Error Message: %s", errMsg.c_str());

LazyFixTool/LazyFixTool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ int main(int argc, char *argv[])
372372
cmd.parse(argc, argv);
373373

374374
setup.noMakeBackup = switchNoBackups.getValue();
375-
setup.walkSubDirs = switchDigRecursive.getValue() | switchDigRecursiveDEP.getValue();
375+
setup.walkSubDirs = switchDigRecursive.getValue() || switchDigRecursiveDEP.getValue();
376376
//nopause = switchNoPause.getValue();
377377

378378
setup.pathOut = outputDirectory.getValue();

0 commit comments

Comments
 (0)