Explorar el Código

Fixed timings of building construction to match H3

Ivan Savenko hace 2 años
padre
commit
bdde9f831a
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      client/gui/CursorHandler.cpp
  2. 1 1
      client/windows/CCastleInterface.h

+ 1 - 1
client/gui/CursorHandler.cpp

@@ -260,7 +260,7 @@ void CursorHandler::centerCursor()
 
 void CursorHandler::updateSpellcastCursor()
 {
-	static const float frameDisplayDuration = 5.0 / 60.0; // H3 uses ~83 ms per image = 5 / 60 second
+	static const float frameDisplayDuration = 5.f / 60.f; // H3 uses ~83 ms per image = 5 / 60 second
 
 	frameTime += GH.mainFPSmng->getElapsedMilliseconds() / 1000.f;
 	size_t newFrame = frame;

+ 1 - 1
client/windows/CCastleInterface.h

@@ -47,7 +47,7 @@ public:
 		BUILDING_APPEAR_TIMEPOINT = 500, //500 msec building appears: 0->100% transparency
 		BUILDING_WHITE_BORDER_TIMEPOINT = 900, //400 msec border glows from white to yellow
 		BUILDING_YELLOW_BORDER_TIMEPOINT = 1100, //200 msec border glows from yellow to normal (dark orange)
-		BUILD_ANIMATION_FINISHED_TIMEPOINT = 1200, //once border is back to yellow nothing happens
+		BUILD_ANIMATION_FINISHED_TIMEPOINT = 2100, // 1000msec once border is back to yellow nothing happens (this stage is basically removed by HD Mod)
 
 		BUILDING_FRAME_TIME = 150 // confirmed H3 timing: 150 ms for each building animation frame
 	};