Don't print any numbers and remove default localhost multiplayer IP address.

These were causing some problems.
This commit is contained in:
IntegratedQuantum 2024-12-03 21:18:20 +01:00
parent 518bc0bf1f
commit 0a8b9de3a9
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;