JANITORIAL: Clean up some English language

This commit is contained in:
Eugene Sandulenko 2024-01-21 00:28:16 +01:00
parent 75bfee7d6b
commit 1d6f7b05ea
No known key found for this signature in database
GPG Key ID: 014D387312D34F08
9 changed files with 10 additions and 11 deletions

View File

@ -216,7 +216,7 @@ static inline Bits MakeVolume( Bitu wave, Bitu volume ) {
#if 0
//Check if we overflow the 31 shift limit
if ( exp >= 32 ) {
LOG_MSG( "WTF %d %d", total, exp );
LOG_MSG( "Overflow %d %d", total, exp );
}
#endif
return (sig >> exp);

View File

@ -37,7 +37,7 @@ const char *const kStandardActionOpenMainMenu = "MENU";
const char *const kStandardActionLoad = "LOAD";
const char *const kStandardActionSave = "SAVE";
const char *const kStandardActionOpenSettings = "OPTS";
const char *const kStandardActionEE = "WTF";
const char *const kStandardActionEE = "EEKY";
const char *const kStandardActionCut = "CUT";
const char *const kStandardActionCopy = "COPY";
const char *const kStandardActionPaste = "PASTE";

View File

@ -603,7 +603,7 @@ unsigned char MixColorAlpha (unsigned char fg,unsigned char bg,unsigned char alp
int out_b = (palette[fg].b>>1) * alpha + (palette[bg].b>>1) * (255 - alpha);
//unsigned char ralpha = alpha>>2;
//unsigned char invralpha = 64-ralpha;
//if (ralpha > alpha) engine->AbortGame ("wtf");
//if (ralpha > alpha) engine->AbortGame ("oops");
//int out_r = alphamultiply[(palette[fg].r>>1)][ralpha] + alphamultiply[(palette[bg].r>>1)][(invralpha)];
//int out_g = alphamultiply[(palette[fg].g)][ralpha] + alphamultiply[(palette[bg].g)][(invralpha)];
//int out_b = alphamultiply[(palette[fg].b>>1)][ralpha] + alphamultiply[(palette[bg].b>>1)][(invralpha)];
@ -629,7 +629,7 @@ unsigned char MixColorAdditive (unsigned char fg,unsigned char bg,unsigned char
int i=0;
int add_r,add_b,add_g = 0;
char ralpha = alpha>>2;
//if (ralpha > alpha) engine->AbortGame ("wtf");
//if (ralpha > alpha) engine->AbortGame ("oops");
//add_r = (((palette[fg].r>>1) * (alpha))>>8);
//add_b = (((palette[fg].b>>1) * (alpha))>>8);
//add_g = (((palette[fg].g) * (alpha))>>8);

View File

@ -70,7 +70,7 @@ public:
}
//char ralpha = MAX(0,MIN(63,alpha>>2));
//unsigned char invralpha = 64-ralpha;
//if (ralpha > alpha) engine->AbortGame ("wtf");
//if (ralpha > alpha) engine->AbortGame ("oops");
//int out_r = alphamultiply[((palette[fg].r>>1)<<6) +ralpha] + alphamultiply[((palette[bg].r>>1)<<6) +(invralpha)];
//int out_g = alphamultiply[((palette[fg].g) <<6) +ralpha] + alphamultiply[((palette[bg].g) <<6) +(invralpha)];
//int out_b = alphamultiply[((palette[fg].b>>1)<<6) +ralpha] + alphamultiply[((palette[bg].b>>1)<<6) +(invralpha)];

View File

@ -333,7 +333,6 @@ void maskBgOverlay(int targetBgIdx, const byte *spritePtr, const byte *maskPtr,
void fadeFromBlack();
void fadeToBlack();
// wtf?!
//void gfxDrawMaskedSprite(byte *param1, byte *param2, byte *param3, byte *param4, int16 param5);
void gfxWaitVBL();
void gfxRedrawMouseCursor();

View File

@ -121,13 +121,13 @@ cGuiGfxElement::~cGuiGfxElement() {
// Delete all textures / Images
if (mvImageBufferVec.size() > 0) {
for (int i = 0; i < (int)mvImageBufferVec.size(); ++i) {
// Skip for now, memory might be fucked..
// Skip for now, memory might be go haywire..
// mpGui->GetResources()->GetImageManager()->Destroy(mvImageBufferVec[i]);
}
} else {
for (int i = 0; i < mlTextureNum; ++i) {
if (mvImages[i]) {
// Skip for now, memory might be fucked..
// Skip for now, memory might go haywire..
// mpGui->GetResources()->GetImageManager()->Destroy(mvImages[i]);
} else if (mvTextures[i]) {
mpGui->GetResources()->GetTextureManager()->Destroy(mvTextures[i]);

View File

@ -2648,7 +2648,7 @@ __mode_return _player::Player_running() {
// set anim set
log->cur_anim_type = __RUN;
MS->Set_motion(__MOTION_RUN); // wtf is this for?
MS->Set_motion(__MOTION_RUN); // what is this for?
MS->Set_can_save(TRUE8); // can save
// arm?

View File

@ -1896,7 +1896,7 @@ void WSC::turnTo(const DirectionConstant direction) {
}
// fall through
// FIXME: fall through intentional?
// clone2727 says: This falls through?!??! WTF?
// clone2727 says: This falls through?!??!
case MakeRoomView(kWSC42, kEast):
_privateFlags.setFlag(kWSCPrivateSinclairOfficeOpenFlag, false);
setCurrentActivation(kActivationSinclairOfficeLocked);

View File

@ -114,7 +114,7 @@ void VisualExplodingImage::ExplosionUnit::setExplosionSettings(const Common::Poi
_speed.setX(cos(StarkRandomSource->getRandomNumber((float)M_PI * 100)) * (float)amplitude.x);
_speed.setY(sin(StarkRandomSource->getRandomNumber((float)M_PI * 100)) * (float)amplitude.y);
// WTF, ensuring all fragments go in the same direction?
// Really? ensuring all fragments go in the same direction?
float magnitude = _position.getDistanceTo(_speed);
_speed -= _position;
_speed = _speed / _speed.getMagnitude() * -magnitude;