Skip to content

Commit

Permalink
Corrected typos in 'CTextWindow::SetData(...)'
Browse files Browse the repository at this point in the history
  • Loading branch information
GamerDude27 committed Sep 11, 2020
1 parent 012012b commit 31302aa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mp/src/game/client/game_controls/vguitextwindow.cpp
Expand Up @@ -385,7 +385,11 @@ void CTextWindow::OnKeyCodePressed( vgui::KeyCode code )

void CTextWindow::SetData(KeyValues *data)
{
#ifdef SDK2013CE
SetData( data->GetInt( "type" ), data->GetString( "title" ), data->GetString( "message" ), data->GetString( "msg_fallback" ), data->GetInt( "command" ), data->GetBool( "unload" ) );
#else
SetData( data->GetInt( "type" ), data->GetString( "title" ), data->GetString( "msg" ), data->GetString( "msg_fallback" ), data->GetInt( "cmd" ), data->GetBool( "unload" ) );
#endif
}

void CTextWindow::SetData( int type, const char *title, const char *message, const char *message_fallback, int command, bool bUnload )
Expand Down
4 changes: 4 additions & 0 deletions sp/src/game/client/game_controls/vguitextwindow.cpp
Expand Up @@ -393,7 +393,11 @@ void CTextWindow::OnKeyCodePressed( vgui::KeyCode code )

void CTextWindow::SetData(KeyValues *data)
{
#ifdef SDK2013CE
SetData( data->GetInt( "type" ), data->GetString( "title" ), data->GetString( "message" ), data->GetString( "msg_fallback" ), data->GetInt( "command" ), data->GetBool( "unload" ) );
#else
SetData( data->GetInt( "type" ), data->GetString( "title" ), data->GetString( "msg" ), data->GetString( "msg_fallback" ), data->GetInt( "cmd" ), data->GetBool( "unload" ) );
#endif
}

void CTextWindow::SetData( int type, const char *title, const char *message, const char *message_fallback, int command, bool bUnload )
Expand Down

1 comment on commit 31302aa

@GamerDude27
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.