Fix zoom setting by PlayerStart object

master
Sven Eberhardt 2018-04-04 19:59:04 -07:00
parent a987f87181
commit 065c8b7d96
3 changed files with 14 additions and 9 deletions

View File

@ -397,9 +397,14 @@ private func InitializeKnowledge(int plr)
private func InitializeView(int plr)
{
SetPlayerViewLock(plr, view_lock);
SetPlayerZoomByViewRange(plr, zoom_min, PLRZOOM_Direct | PLRZOOM_LimitMin);
SetPlayerZoomByViewRange(plr, zoom_max, PLRZOOM_Direct | PLRZOOM_LimitMax);
SetPlayerZoomByViewRange(plr, zoom_set, PLRZOOM_Direct | PLRZOOM_Set);
// Zoom limit "nil" means default limits.
SetPlayerZoomByViewRange(plr, zoom_min, zoom_min, PLRZOOM_Direct | PLRZOOM_LimitMin);
SetPlayerZoomByViewRange(plr, zoom_max, zoom_max, PLRZOOM_Direct | PLRZOOM_LimitMax);
// If no zoom value is specified: Assume what the player has set currently is the default.
if (zoom_set != nil)
{
SetPlayerZoomByViewRange(plr, zoom_set, zoom_set, PLRZOOM_Direct | PLRZOOM_Set);
}
return true;
}

View File

@ -19,8 +19,8 @@ RespawnMaterial=Respawn-Material
SameAsStartingMaterial=Wie Startmaterial
RespawnMaterialHelp=Gegenstaende, die Clonks nach einem Respawn oder neu gekaufte Clonks tragen.
ViewLock=Gesperrte Sicht
ZoomMin=Minimaler Zoom
ZoomMax=Maximaler Zoom
ZoomSet=Standard Zoom
ZoomMin=Minimale Sichtweite fuer Berechnung des Zoomfaktors.
ZoomMax=Maximale Sichtweite fuer Berechnung des Zoomfaktors.
ZoomSet=Sichtweite bei Spielstart
BaseMaterial=Basismaterial
BaseMaterialHelp=Material das an der Flagge gekauft werden kann. Die Spielregel 'Kaufen an Flagge' muss dafuer aktiviert sein. Hier muessen auch Clonks aktiviert werden, wenn der Respawn an der Flagge nicht kostenlos ist.

View File

@ -19,8 +19,8 @@ RespawnMaterial=Respawn material
SameAsStartingMaterial=Same as start material
RespawnMaterialHelp=Items carried by clonks after a respawn or when newly bought.
ViewLock=Lock the viewport
ZoomMin=Minimal zoom
ZoomMax=Maximal zoom
ZoomSet=Default zoom
ZoomMin=Minimal view range to calculate zoom
ZoomMax=Maximal view range to calculate zoom
ZoomSet=Default view range to calculate zoom
BaseMaterial=Base material
BaseMaterialHelp=Material that can be bought at the flagpole. The rule 'Buy at flagpole' must be activated. Clonks should be added to this list if respawn at flagpoles is activated and not set to free.