Change some rough/inappropriate language in comments (#9061)

This commit is contained in:
random-geek 2019-10-23 17:17:00 -07:00 committed by Paramat
parent 1f142ec06f
commit 53ebd803c6
5 changed files with 12 additions and 9 deletions

View File

@ -1801,7 +1801,7 @@ function default.spawn_falling_node(p, nodename)
spawn_falling_node(p, nodename) spawn_falling_node(p, nodename)
end end
-- Horrible crap to support old code -- Horrible stuff to support old code
-- Don't use this and never do what this does, it's completely wrong! -- Don't use this and never do what this does, it's completely wrong!
-- (More specifically, the client and the C++ code doesn't get the group) -- (More specifically, the client and the C++ code doesn't get the group)
function default.register_falling_node(nodename, texture) function default.register_falling_node(nodename, texture)

View File

@ -22,9 +22,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
/* /*
All kinds of constants. All kinds of constants.
Cross-platform compatibility crap should go in porting.h. Cross-platform compatibility stuff should go in porting.h.
Some things here are legacy crap. Some things here are legacy.
*/ */
/* /*

View File

@ -1109,10 +1109,13 @@ void GUIEditBoxWithScrollBar::breakText()
m_broken_text_positions.push_back(last_line_start); m_broken_text_positions.push_back(last_line_start);
} }
// TODO: that function does interpret VAlign according to line-index (indexed line is placed on top-center-bottom) // TODO: that function does interpret VAlign according to line-index (indexed
// but HAlign according to line-width (pixels) and not by row. // line is placed on top-center-bottom) but HAlign according to line-width
// Intuitively I suppose HAlign handling is better as VScrollPos should handle the line-scrolling. // (pixels) and not by row.
// But please no one change this without also rewriting (and this time fucking testing!!!) autoscrolling (I noticed this when fixing the old autoscrolling). // Intuitively I suppose HAlign handling is better as VScrollPos should handle
// the line-scrolling.
// But please no one change this without also rewriting (and this time
// testing!!!) autoscrolling (I noticed this when fixing the old autoscrolling).
void GUIEditBoxWithScrollBar::setTextRect(s32 line) void GUIEditBoxWithScrollBar::setTextRect(s32 line)
{ {
if (line < 0) if (line < 0)

View File

@ -179,7 +179,7 @@ void Map::setNode(v3s16 p, MapNode & n)
v3s16 blockpos = getNodeBlockPos(p); v3s16 blockpos = getNodeBlockPos(p);
MapBlock *block = getBlockNoCreate(blockpos); MapBlock *block = getBlockNoCreate(blockpos);
v3s16 relpos = p - blockpos*MAP_BLOCKSIZE; v3s16 relpos = p - blockpos*MAP_BLOCKSIZE;
// Never allow placing CONTENT_IGNORE, it fucks up stuff // Never allow placing CONTENT_IGNORE, it causes problems
if(n.getContent() == CONTENT_IGNORE){ if(n.getContent() == CONTENT_IGNORE){
bool temp_bool; bool temp_bool;
errorstream<<"Map::setNode(): Not allowing to place CONTENT_IGNORE" errorstream<<"Map::setNode(): Not allowing to place CONTENT_IGNORE"

View File

@ -846,7 +846,7 @@ void MapNode::deSerialize_pre22(const u8 *source, u8 version)
{ {
// In these versions, CONTENT_IGNORE and CONTENT_AIR // In these versions, CONTENT_IGNORE and CONTENT_AIR
// are 255 and 254 // are 255 and 254
// Version 19 is fucked up with sometimes the old values and sometimes not // Version 19 is messed up with sometimes the old values and sometimes not
if(param0 == 255) if(param0 == 255)
param0 = CONTENT_IGNORE; param0 = CONTENT_IGNORE;
else if(param0 == 254) else if(param0 == 254)