mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-03-23 03:23:24 +08:00
minor fixes
This commit is contained in:
@@ -311,14 +311,17 @@ public static class LogisticsPatch
|
||||
{
|
||||
if (!Input.GetKey(code))
|
||||
return false;
|
||||
var main = GameMain.instance;
|
||||
if (main == null)
|
||||
return false;
|
||||
if (code != _lastKey)
|
||||
{
|
||||
_lastKey = code;
|
||||
_nextKeyTick = GameMain.instance.timei + 30;
|
||||
_nextKeyTick = main.timei + 30;
|
||||
return true;
|
||||
}
|
||||
|
||||
var currTick = GameMain.instance.timei;
|
||||
var currTick = main.timei;
|
||||
if (_nextKeyTick > currTick) return false;
|
||||
_nextKeyTick = currTick + 4;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user