mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-03 03:06:55 -04:00
Fix formatting
This commit is contained in:
parent
73bbdcc033
commit
824840a776
@ -50,13 +50,7 @@ fn findValidFolderName(allocator: NeverFailingAllocator, name: []const u8) []con
|
||||
defer main.stackAllocator.free(escapedName);
|
||||
for(name, 0..) |char, i| {
|
||||
escapedName[i] = switch(char) {
|
||||
'a'...'z',
|
||||
'A'...'Z',
|
||||
'0'...'9',
|
||||
'_',
|
||||
'-',
|
||||
'.',
|
||||
' ' => char,
|
||||
'a'...'z', 'A'...'Z', '0'...'9', '_', '-', '.', ' ' => char,
|
||||
128...255 => char,
|
||||
else => '-',
|
||||
};
|
||||
|
@ -140,7 +140,7 @@ pub fn onOpen() void {
|
||||
}
|
||||
|
||||
std.sort.insertion(WorldInfo, worldList.items, {}, struct {
|
||||
fn lessThan(_: void, lhs: WorldInfo, rhs: WorldInfo)bool {
|
||||
fn lessThan(_: void, lhs: WorldInfo, rhs: WorldInfo) bool {
|
||||
return rhs.lastUsedTime -% lhs.lastUsedTime < 0;
|
||||
}
|
||||
}.lessThan);
|
||||
|
Loading…
x
Reference in New Issue
Block a user