Skip to content

Commit

Permalink
Fix random prints
Browse files Browse the repository at this point in the history
  • Loading branch information
Matqyou committed Nov 15, 2024
1 parent 99fa5ce commit df1e1d9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions src/GameReference.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ bool GameReference::InitializeTTF() {
bool GameReference::Initialize() {
SDL_version Version;
SDL_GetVersion(&Version);
std::cout << "Using SDL " << (int)Version.major << "." << (int)Version.minor << "." << (int)Version.patch
<< std::endl;
std::cout << "Using SDL " << (int)Version.major << "." << (int)Version.minor << "." << (int)Version.patch << std::endl;

if (!InitializeSDL() ||
!InitializeMix() ||
Expand Down
1 change: 0 additions & 1 deletion src/game/entities/character/Hands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ Hands::Hands(Character* parent, double hand_spacing, double fist_animation_durat
m_yRight = ParentCore.Size.y /2.0;
m_Size = ParentCore.sizeRatio * 0.36 *2;
m_Size2 = m_Size / 2.0;
std::cout << ParentCore.Size.y << std::endl;
}

Hands::~Hands() {
Expand Down
2 changes: 0 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,10 +383,8 @@ int main()
break;
case SDL_WINDOWEVENT:
{
std::cout << "Window event: " << CurrentEvent.window.event << std::endl;
if (CurrentEvent.window.event == SDL_WINDOWEVENT_RESIZED)
{
std::cout << "Window event: " << CurrentEvent.window.event << std::endl;
PlayButtonRect = {int(GameWindow->GetWidth2()) - 180,
int(GameWindow->GetHeight2()) - 40,
360, 80};
Expand Down

0 comments on commit df1e1d9

Please sign in to comment.