Убрал "-30"
This commit is contained in:
parent
b90e675eca
commit
dac64d0e04
1 changed files with 10 additions and 9 deletions
|
@ -195,7 +195,7 @@ void drawMenu()
|
||||||
txSleep(10);
|
txSleep(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
loadingAnimation(2, 3);
|
loadingAnimation(2, 7);
|
||||||
txSleep(50);
|
txSleep(50);
|
||||||
|
|
||||||
lvlCreatingIsStarted = true;
|
lvlCreatingIsStarted = true;
|
||||||
|
@ -407,10 +407,10 @@ void mainFunc()
|
||||||
if (selectedPict >= 0 && !(txMouseButtons() & 1)) {
|
if (selectedPict >= 0 && !(txMouseButtons() & 1)) {
|
||||||
|
|
||||||
RECT elRectCoords = {
|
RECT elRectCoords = {
|
||||||
(round((txMouseX() - 30) + 30 / 60) * 60),
|
(round((txMouseX() - 30) / 60) * 60),
|
||||||
(round((txMouseY() - 30) + 30 / 60) * 60),
|
(round((txMouseY() - 30) / 60) * 60),
|
||||||
(round((txMouseX() + 30) - 30 / 60) * 60),
|
(round((txMouseX() + 30) / 60) * 60),
|
||||||
(round((txMouseY() + 30) - 30 / 60) * 60)
|
(round((txMouseY() + 30) / 60) * 60)
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!areElemWithTheseCoordsExisting(elRectCoords, mapParts)) {
|
if (!areElemWithTheseCoordsExisting(elRectCoords, mapParts)) {
|
||||||
|
@ -507,10 +507,10 @@ bool addingBlock(bool clicked, RECT blockBut, HDC pic,
|
||||||
|
|
||||||
RECT elRectCoords = {
|
RECT elRectCoords = {
|
||||||
|
|
||||||
(round((txMouseX() - 30) + 30 / 60) * 60),
|
(round((txMouseX() - 30) / 60) * 60),
|
||||||
(round((txMouseY() - 30) + 30 / 60) * 60),
|
(round((txMouseY() - 30) / 60) * 60),
|
||||||
(round((txMouseX() + 30) - 30 / 60) * 60),
|
(round((txMouseX() + 30) / 60) * 60),
|
||||||
(round((txMouseY() + 30) - 30 / 60) * 60)
|
(round((txMouseY() + 30) / 60) * 60)
|
||||||
};
|
};
|
||||||
|
|
||||||
if ((txMouseX() < txGetExtentX() - BLOCK_SIZE) &&
|
if ((txMouseX() < txGetExtentX() - BLOCK_SIZE) &&
|
||||||
|
@ -637,6 +637,7 @@ bool areElemWithTheseCoordsExisting(RECT coords, MapPart mapParts[])
|
||||||
coords.top == elemCoords.top &&
|
coords.top == elemCoords.top &&
|
||||||
coords.right == elemCoords.right &&
|
coords.right == elemCoords.right &&
|
||||||
coords.bottom == elemCoords.bottom &&
|
coords.bottom == elemCoords.bottom &&
|
||||||
|
|
||||||
mapParts[i].visible
|
mapParts[i].visible
|
||||||
) {
|
) {
|
||||||
areElemExisting = true;
|
areElemExisting = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue