Revert "Eliminados todos los std:: del código"

This reverts commit 4a2d27dc59.
This commit is contained in:
2023-09-16 16:44:15 +02:00
parent 4a2d27dc59
commit 0ea7eb0b9c
35 changed files with 504 additions and 539 deletions

View File

@@ -25,7 +25,7 @@ EnterID::EnterID(SDL_Renderer *renderer, Screen *screen, Asset *asset, options_t
{
if (options->console)
{
cout << "Error: textTexture could not be created!\nSDL Error: " << SDL_GetError() << endl;
std::cout << "Error: textTexture could not be created!\nSDL Error: " << SDL_GetError() << std::endl;
}
}
SDL_SetTextureBlendMode(textTexture, SDL_BLENDMODE_BLEND);
@@ -90,7 +90,7 @@ void EnterID::checkEventHandler()
{
if (eventHandler->key.keysym.scancode == SDL_SCANCODE_RETURN)
{
options->online.jailerID = (string)name;
options->online.jailerID = (std::string)name;
endSection();
break;
}
@@ -206,7 +206,7 @@ void EnterID::render()
SDL_RenderCopy(renderer, textTexture, nullptr, nullptr);
// Escribe el jailerID
const string jailerID = (string)name + cursor;
const std::string jailerID = (std::string)name + cursor;
const color_t color = stringToColor(options->palette, "white");
text->writeDX(TXT_CENTER | TXT_COLOR, GAMECANVAS_CENTER_X, (16 * 8 + 1), jailerID, 1, color);
@@ -296,14 +296,14 @@ void EnterID::initOnline()
jscore::init(options->online.server, options->online.port);
#ifdef DEBUG
const string caption = "IS LOGGED IN (DEBUG)";
const std::string caption = "IS LOGGED IN (DEBUG)";
#else
const string caption = "IS LOGGED IN";
const std::string caption = "IS LOGGED IN";
#endif
screen->showNotification(options->online.jailerID, caption, 12);
if (options->console)
{
cout << caption << endl;
std::cout << caption << std::endl;
}
}
}