mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-04 02:41:19 +00:00
Merge branch 'comma' into 'master'
Don't use comma where there is no need to. See merge request OpenMW/openmw!1179
This commit is contained in:
commit
0daf6f5d0b
@ -491,7 +491,8 @@ struct TypesetBookImpl::Typesetter : BookTypesetter
|
||||
{
|
||||
add_partial_text();
|
||||
stream.consume ();
|
||||
mLine = nullptr, mRun = nullptr;
|
||||
mLine = nullptr;
|
||||
mRun = nullptr;
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -551,7 +552,9 @@ struct TypesetBookImpl::Typesetter : BookTypesetter
|
||||
|
||||
if (left + space_width + word_width > mPageWidth)
|
||||
{
|
||||
mLine = nullptr, mRun = nullptr, left = 0;
|
||||
mLine = nullptr;
|
||||
mRun = nullptr;
|
||||
left = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -988,7 +988,8 @@ namespace MWGui
|
||||
if (mInterior)
|
||||
{
|
||||
auto pos = MWBase::Environment::get().getWorld()->getPlayer().getLastKnownExteriorPosition();
|
||||
x = pos.x(), y = pos.y();
|
||||
x = pos.x();
|
||||
y = pos.y();
|
||||
}
|
||||
setGlobalMapPlayerPosition(x, y);
|
||||
|
||||
@ -1160,7 +1161,8 @@ namespace MWGui
|
||||
void MapWindow::worldPosToGlobalMapImageSpace(float x, float y, float& imageX, float& imageY) const
|
||||
{
|
||||
mGlobalMapRender->worldPosToImageSpace(x, y, imageX, imageY);
|
||||
imageX *= mGlobalMapZoom, imageY *= mGlobalMapZoom;
|
||||
imageX *= mGlobalMapZoom;
|
||||
imageY *= mGlobalMapZoom;
|
||||
}
|
||||
|
||||
void MapWindow::updateCustomMarkers()
|
||||
|
@ -33,7 +33,10 @@ namespace MWRender
|
||||
|
||||
void TerrainStorage::getBounds(float& minX, float& maxX, float& minY, float& maxY)
|
||||
{
|
||||
minX = 0, minY = 0, maxX = 0, maxY = 0;
|
||||
minX = 0;
|
||||
minY = 0;
|
||||
maxX = 0;
|
||||
maxY = 0;
|
||||
|
||||
const MWWorld::ESMStore &esmStore =
|
||||
MWBase::Environment::get().getWorld()->getStore();
|
||||
|
@ -520,7 +520,8 @@ namespace MWWorld
|
||||
const ESM::Cell *Store<ESM::Cell>::search(int x, int y) const
|
||||
{
|
||||
ESM::Cell cell;
|
||||
cell.mData.mX = x, cell.mData.mY = y;
|
||||
cell.mData.mX = x;
|
||||
cell.mData.mY = y;
|
||||
|
||||
std::pair<int, int> key(x, y);
|
||||
DynamicExt::const_iterator it = mExt.find(key);
|
||||
@ -538,7 +539,8 @@ namespace MWWorld
|
||||
const ESM::Cell *Store<ESM::Cell>::searchStatic(int x, int y) const
|
||||
{
|
||||
ESM::Cell cell;
|
||||
cell.mData.mX = x, cell.mData.mY = y;
|
||||
cell.mData.mX = x;
|
||||
cell.mData.mY = y;
|
||||
|
||||
std::pair<int, int> key(x, y);
|
||||
DynamicExt::const_iterator it = mExt.find(key);
|
||||
|
Loading…
Reference in New Issue
Block a user