mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-22 02:26:11 +00:00
![Refrag](/assets/img/avatar_default.png)
This commit adds Sonic Robo Blast 2, a Sonic fangame running with SDL2 to the list of SerenityOS game ports. The game is working fine for the most part but there's some performance issues and the mouse never resets to the center so it gets stuck in the window's corners. It seems like the multiplayer / networking is also not quite working but I think that this is very cool already.
35 lines
1 KiB
Diff
35 lines
1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Refrag <R3FR4GYT@gmail.com>
|
|
Date: Sun, 4 Feb 2024 17:45:16 +0100
|
|
Subject: [PATCH] Disable Console Variables value checker sad path
|
|
|
|
For some reason, the value checker for console variables seems to not behave properly even with the default console variables value.
|
|
Disabling the error path resolves this issue and the game still works fine without it.
|
|
---
|
|
src/command.c | 5 -----
|
|
1 file changed, 5 deletions(-)
|
|
|
|
diff --git a/src/command.c b/src/command.c
|
|
index e1a43522d..4336d19ac 100644
|
|
--- a/src/command.c
|
|
+++ b/src/command.c
|
|
@@ -1522,8 +1522,6 @@ static void Setvalue(consvar_t *var, const char *valstr, boolean stealth)
|
|
override = true;
|
|
overrideval = v;
|
|
}
|
|
- if (v == INT32_MIN)
|
|
- goto badinput;
|
|
#undef MINVAL
|
|
#undef MAXVAL
|
|
}
|
|
@@ -1558,9 +1556,6 @@ static void Setvalue(consvar_t *var, const char *valstr, boolean stealth)
|
|
goto found;
|
|
}
|
|
}
|
|
-
|
|
- // ...or not.
|
|
- goto badinput;
|
|
found:
|
|
if (client && execversion_enabled)
|
|
{
|