]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/g_tetris.qc
Unify boolean constants
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / g_tetris.qc
index d7e47c077ccfe689b6398885a2ddf36fdf5e0e69..6fb88e43643e92015d56f6b20b8445b33737d47c 100644 (file)
@@ -820,7 +820,7 @@ float CheckMetrics(float piece, float orgx, float orgy, float rot) /*FIXDECL*/
 
        PieceMinsMaxs(rot, piece);
        if (tet_piecemins.x+orgx<1 || tet_piecemaxs.x+orgx > TET_WIDTH || tet_piecemins.y+orgy<1 || tet_piecemaxs.y+orgy> TET_LINES)
-               return FALSE; // ouside the level
+               return false; // ouside the level
        for (y = tet_piecemins.y; y <= tet_piecemaxs.y; y = y + 1)
        {
                l = GetLine(y + orgy);
@@ -828,9 +828,9 @@ float CheckMetrics(float piece, float orgx, float orgy, float rot) /*FIXDECL*/
                for (x = tet_piecemins.x; x <= tet_piecemaxs.x; x = x + 1)
                        if (PieceMetric(x, y, rot, piece))
                                if (GetXBlock(x + orgx, l))
-                                       return FALSE; // uhoh, gonna hit something.
+                                       return false; // uhoh, gonna hit something.
        }
-       return TRUE;
+       return true;
 }
 
 void ClearPiece(float piece, float orgx, float orgy, float rot) /*FIXDECL*/