Skip to content

Commit

Permalink
fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
MatusGuy committed Apr 25, 2024
1 parent 9424cb7 commit f915887
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 5 additions & 1 deletion mk/cmake/SuperTux/ProvideSimpleSquirrel.cmake
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
add_subdirectory("${CMAKE_SOURCE_DIR}/external/simplesquirrel/")
add_library(LibSimpleSquirrel ALIAS simplesquirrel)
if(MSVC)
add_library(LibSimpleSquirrel ALIAS simplesquirrel_static)
else()
add_library(LibSimpleSquirrel ALIAS simplesquirrel)
endif()
2 changes: 1 addition & 1 deletion src/object/camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ Camera::scroll_to(float x, float y, float scrolltime)
void
Camera::set_scale(float scale)
{
ease_scale(scale, 0, "");
m_scale = scale;
}

void
Expand Down
3 changes: 0 additions & 3 deletions src/object/camera.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,6 @@ class Camera final : public GameObject,
/** get the scale towards which the camera is moving */
float get_target_scale() const { return m_scale_target; }

/** Instantly set the scale of the camera */
void set_scale(float scale) { m_scale = scale; }

/** smoothly slide the scale and anchor position of the camera towards a new value */
void ease_scale(float scale, float time, easing ease, AnchorPoint anchor = AnchorPoint::ANCHOR_MIDDLE);
/** @} */
Expand Down

0 comments on commit f915887

Please sign in to comment.