Browse Source

ci: 💚 Try to fix Hash

tags/0.1.0
shangfengh 2 years ago
parent
commit
f92b520ed7
2 changed files with 1 additions and 15 deletions
  1. +0
    -14
      .github/workflows/upload_COS.yml
  2. +1
    -1
      logic/GameEngine/MoveEngine.cs

+ 0
- 14
.github/workflows/upload_COS.yml View File

@@ -138,13 +138,6 @@ jobs:
- name: Remove Files - name: Remove Files
run: | run: |
rm ./THUAI6/hash.json rm ./THUAI6/hash.json
rm ./THUAI6/win/win64/PresentationCore.dll
rm ./THUAI6/win/win64/PresentationFramework.dll
rm ./THUAI6/win/win64/Debug/Microsoft.DiaSymReader.Native.amd64.dll
rm ./THUAI6/win/win64/WindowsBase.dll
rm ./THUAI6/win/win64/Debug/grpc_csharp_ext.x64.dll
rm ./THUAI6/win/win64/grpc_csharp_ext.x64.dll


rm -r ./THUAI6/win/CAPI/cpp/grpc rm -r ./THUAI6/win/CAPI/cpp/grpc
rm -r ./THUAI6/win/CAPI/cpp/spdlog rm -r ./THUAI6/win/CAPI/cpp/spdlog
@@ -155,13 +148,6 @@ jobs:
rm -r ./THUAI6/osx/CAPI/cpp/grpc rm -r ./THUAI6/osx/CAPI/cpp/grpc
rm -r ./THUAI6/osx/CAPI/cpp/spdlog rm -r ./THUAI6/osx/CAPI/cpp/spdlog
rm -r ./THUAI6/osx/CAPI/cpp/tclap rm -r ./THUAI6/osx/CAPI/cpp/tclap
rm ./THUAI6/linux/linux64/System.*.dll
rm ./THUAI6/linux/linux64/Debug/System.*.dll
rm ./THUAI6/osx/osx64/System.*.dll
rm ./THUAI6/osx/osx64/Debug/System.*.dll
rm ./THUAI6/win/win64/System.*.dll
rm ./THUAI6/win/win64/Debug/System.*.dll


rm ./THUAI6/linux/linux64/*.so rm ./THUAI6/linux/linux64/*.so
rm ./THUAI6/linux/linux64/Debug/*.so rm ./THUAI6/linux/linux64/Debug/*.so


+ 1
- 1
logic/GameEngine/MoveEngine.cs View File

@@ -87,7 +87,7 @@ namespace GameEngine
obj.IsMoving = true; obj.IsMoving = true;


double moveVecLength = 0.0; double moveVecLength = 0.0;
XY res = new XY(direction, moveVecLength);
XY res = new(direction, moveVecLength);
double deltaLen = moveVecLength - Math.Sqrt(obj.MovingSetPos(res, GetPlaceType(obj.Position + res))); // 转向,并用deltaLen存储行走的误差 double deltaLen = moveVecLength - Math.Sqrt(obj.MovingSetPos(res, GetPlaceType(obj.Position + res))); // 转向,并用deltaLen存储行走的误差
IGameObj? collisionObj = null; IGameObj? collisionObj = null;
bool isDestroyed = false; bool isDestroyed = false;


Loading…
Cancel
Save