mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-03 19:28:49 -04:00
Don't print any numbers and remove default localhost multiplayer IP address.
These were causing some problems.
This commit is contained in:
parent
518bc0bf1f
commit
0a8b9de3a9
@ -35,7 +35,7 @@ fn linearToDezibel(x: f32) f32 {
|
||||
fn musicFormatter(allocator: NeverFailingAllocator, value: f32) []const u8 {
|
||||
const percentage = 100*deziBelToLinear(value);
|
||||
if(percentage == 0) return allocator.dupe(u8, "Music volume: Off");
|
||||
return std.fmt.allocPrint(allocator.allocator, "Music volume: {d:.1} dB ({d:.1}%)", .{value, percentage}) catch unreachable;
|
||||
return std.fmt.allocPrint(allocator.allocator, "Music volume:", .{}) catch unreachable;
|
||||
}
|
||||
|
||||
const padding: f32 = 8;
|
||||
|
@ -37,7 +37,7 @@ pub var vsync: bool = true;
|
||||
|
||||
pub var playerName: []const u8 = "";
|
||||
|
||||
pub var lastUsedIPAddress: []const u8 = "127.0.0.1";
|
||||
pub var lastUsedIPAddress: []const u8 = "";
|
||||
|
||||
pub var guiScale: ?f32 = null;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user