Skip to content

Commit 80297dd

Browse files
admin: Fix panel FPS range label width + Fixed lint error (#647)
* admin: Fixed FPS range label width It changes the FPS range label width from 0.1 to 0.12 so the label text doesn't get cut off.
1 parent fc499dc commit 80297dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

[admin]/admin/client/gui/admin_main.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ y=y+B aTab1.VehicleHealth = guiCreateLabel ( 0.26, y, 0.25, 0.04, "Vehicle Heal
269269
aTab3.FPSCurrent = guiCreateLabel ( 0.05, 0.65, 0.25, 0.04, "FPS Limit: 38", true, aTab3.Tab )
270270
aTab3.FPS = guiCreateEdit ( 0.35, 0.65, 0.135, 0.04, "38", true, aTab3.Tab )
271271
aTab3.FPSSet = guiCreateButton ( 0.50, 0.65, 0.10, 0.04, "Set", true, aTab3.Tab, "setfpslimit" )
272-
guiCreateLabel ( 0.63, 0.65, 0.1, 0.04, "( 25-32767 )", true, aTab3.Tab )
272+
guiCreateLabel ( 0.63, 0.65, 0.12, 0.04, "( 25-32767 )", true, aTab3.Tab )
273273

274274

275275
aTab4 = {}

[editor]/editor_main/client/elementcreation.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function doCreateElement ( elementType, resourceName, creationParameters, attach
3939
creationParameters = creationParameters or {}
4040
if not creationParameters.position then
4141
local targetX, targetY, targetZ = processCameraLineOfSight()
42-
if not elementType == "object" or not elementType == "vehicle" then
42+
if elementType ~= "object" and elementType ~= "vehicle" then
4343
creationParameters.position = nil
4444
else
4545
creationParameters.position = {targetX, targetY, targetZ + .5}

0 commit comments

Comments
 (0)