AGS: Remove commented out debug code from plugins

This commit is contained in:
Paul Gilbert 2021-09-10 18:53:05 -07:00
parent 94c9b28630
commit aae048203f
2 changed files with 0 additions and 70 deletions

View File

@ -127,11 +127,6 @@ void AGSParallax::Draw(bool foreground) {
void AGSParallax::pxDrawSprite(ScriptMethodParams &params) {
PARAMS5(int, id, int, x, int, y, int, slot, int, speed);
#ifdef DEBUG
char buffer[200];
sprintf(buffer, "%s %d %d %d %d %d\n", "pxDrawSprite", id, x, y, slot, speed);
_engine->PrintDebugConsole(buffer);
#endif
if ((id < 0) || (id >= MAX_SPRITES))
return;
@ -152,11 +147,6 @@ void AGSParallax::pxDrawSprite(ScriptMethodParams &params) {
void AGSParallax::pxDeleteSprite(ScriptMethodParams &params) {
PARAMS1(int, id);
#ifdef DEBUG
char buffer[200];
sprintf(buffer, "%s %d\n", "pxDeleteSprite", id);
_engine->PrintDebugConsole(buffer);
#endif
if ((id < 0) || (id >= MAX_SPRITES))
return;

View File

@ -246,12 +246,6 @@ void Weather::InitializeParticles() {
}
void Weather::SetDriftRange(int min_value, int max_value) {
#ifdef DEBUG
char buffer[200];
sprintf(buffer, "%d %s %d %d\n", (int)_mIsSnow, "SetDriftRange", min_value, max_value);
_engine->PrintDebugConsole(buffer);
#endif
ClipToRange(min_value, 0, 100);
ClipToRange(max_value, 0, 100);
@ -267,12 +261,6 @@ void Weather::SetDriftRange(int min_value, int max_value) {
}
void Weather::SetDriftSpeed(int min_value, int max_value) {
#ifdef DEBUG
char buffer[200];
sprintf(buffer, "%d %s %d %d\n", (int)_mIsSnow, "SetDriftSpeed", min_value, max_value);
_engine->PrintDebugConsole(buffer);
#endif
ClipToRange(min_value, 0, 200);
ClipToRange(max_value, 0, 200);
@ -288,24 +276,12 @@ void Weather::SetDriftSpeed(int min_value, int max_value) {
}
void Weather::ChangeAmount(int amount) {
#ifdef DEBUG
char buffer[200];
sprintf(buffer, "%d %s %d\n", (int)_mIsSnow, "ChangeAmount", amount);
_engine->PrintDebugConsole(buffer);
#endif
ClipToRange(amount, 0, 1000);
_mTargetAmount = amount;
}
void Weather::SetView(int kind_id, int event, int view, int loop) {
#ifdef DEBUG
char buffer[200];
sprintf(buffer, "%d %s %d %d %d %d\n", (int)_mIsSnow, "SetView", kind_id, event, view, loop);
_engine->PrintDebugConsole(buffer);
#endif
AGSViewFrame *view_frame = _engine->GetViewFrame(view, loop, 0);
_mViews[kind_id].bitmap = _engine->GetSpriteGraphic(view_frame->pic);
_mViews[kind_id].is_default = false;
@ -317,12 +293,6 @@ void Weather::SetView(int kind_id, int event, int view, int loop) {
}
void Weather::SetDefaultView(int view, int loop) {
#ifdef DEBUG
char buffer[200];
sprintf(buffer, "%d %s %d %d\n", (int)_mIsSnow, "SetDefaultView", view, loop);
_engine->PrintDebugConsole(buffer);
#endif
AGSViewFrame *view_frame = _engine->GetViewFrame(view, loop, 0);
BITMAP *bitmap = _engine->GetSpriteGraphic(view_frame->pic);
@ -339,12 +309,6 @@ void Weather::SetDefaultView(int view, int loop) {
}
void Weather::SetTransparency(int min_value, int max_value) {
#ifdef DEBUG
char buffer[200];
sprintf(buffer, "%d %s %d %d\n", (int)_mIsSnow, "SetTransparency", min_value, max_value);
_engine->PrintDebugConsole(buffer);
#endif
ClipToRange(min_value, 0, 100);
ClipToRange(max_value, 0, 100);
@ -364,24 +328,12 @@ void Weather::SetTransparency(int min_value, int max_value) {
}
void Weather::SetWindSpeed(int value) {
#ifdef DEBUG
char buffer[200];
sprintf(buffer, "%d %s %d\n", (int)_mIsSnow, "SetWindSpeed", value);
_engine->PrintDebugConsole(buffer);
#endif
ClipToRange(value, -200, 200);
_mWindSpeed = (float)value / 20.0f;
}
void Weather::SetBaseline(int top, int bottom) {
#ifdef DEBUG
char buffer[200];
sprintf(buffer, "%d %s %d %d\n", (int)_mIsSnow, "SetBaseline", top, bottom);
_engine->PrintDebugConsole(buffer);
#endif
if (_screenHeight > 0) {
ClipToRange(top, 0, _screenHeight);
ClipToRange(bottom, 0, _screenHeight);
@ -399,12 +351,6 @@ void Weather::SetBaseline(int top, int bottom) {
}
void Weather::SetAmount(int amount) {
#ifdef DEBUG
char buffer[200];
sprintf(buffer, "%d %s %d\n", (int)_mIsSnow, "SetAmount", amount);
_engine->PrintDebugConsole(buffer);
#endif
ClipToRange(amount, 0, 1000);
_mAmount = _mTargetAmount = amount;
@ -413,12 +359,6 @@ void Weather::SetAmount(int amount) {
}
void Weather::SetFallSpeed(int min_value, int max_value) {
#ifdef DEBUG
char buffer[200];
sprintf(buffer, "%d %s %d %d\n", (int)_mIsSnow, "SetFallSpeed", min_value, max_value);
_engine->PrintDebugConsole(buffer);
#endif
ClipToRange(min_value, 0, 1000);
ClipToRange(max_value, 0, 1000);