Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,7 @@ void BaseHeightMapRenderObjClass::adjustTerrainLOD(Int adj)
newROBJ->m_roadBuffer->loadRoads();
}
if (TheTacticalView) {
TheTacticalView->setAngle(TheTacticalView->getAngle() + 1);
TheTacticalView->setAngle(TheTacticalView->getAngle() - 1);
TheTacticalView->forceRedraw();
}
}

Expand Down Expand Up @@ -485,11 +484,8 @@ void BaseHeightMapRenderObjClass::ReAcquireResources()
}
#endif

if (TheTacticalView)
{ TheTacticalView->forceRedraw(); //force map to update itself for the current camera position.
//for some reason we need to do it twice otherwise we sometimes end up with a black map until
//the player moves.
TheTacticalView->forceRedraw();
if (TheTacticalView) {
TheTacticalView->forceRedraw(); //force map to update itself for the current camera position.
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -806,13 +806,7 @@ void ScriptActions::doPitchCamera(Real pitch, Real sec)
void ScriptActions::doOversizeTheTerrain(Int amount)
{
oversizeTheTerrain(amount);
Coord2D offset;
offset.x = 0.0001f;
offset.y = 0.0001f;
TheTacticalView->scrollBy(&offset);
offset.x = -0.0001f;
offset.y = -0.0001f;
TheTacticalView->scrollBy(&offset);
TheTacticalView->forceRedraw();
}

//-------------------------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -833,13 +833,7 @@ void ScriptActions::doPitchCamera(Real pitch, Real sec, Real easeIn, Real easeOu
void ScriptActions::doOversizeTheTerrain(Int amount)
{
oversizeTheTerrain(amount);
Coord2D offset;
offset.x = 0.0001f;
offset.y = 0.0001f;
TheTacticalView->scrollBy(&offset);
offset.x = -0.0001f;
offset.y = -0.0001f;
TheTacticalView->scrollBy(&offset);
TheTacticalView->forceRedraw();
}

//-------------------------------------------------------------------------------------------------
Expand Down
Loading