1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Fix bug where the buttons were not shown with the factory

The buttons are not shown when a blupi is just on south of the factory.
It's an offset problem that this commit is fixing.
This commit is contained in:
Mathieu Schroeter 2017-08-11 21:31:27 +02:00
parent b42967d762
commit 2c15835ddf

View File

@ -1593,8 +1593,9 @@ Errors CDecor::CelOkForAction (
if (
action == 2 || action == EV_ACTION_ABAT1 || action == EV_ACTION_ROC1 ||
action == EV_ACTION_DROP || action == EV_ACTION_LABO ||
action == EV_ACTION_FLOWER1 || action == EV_ACTION_CULTIVE ||
action == EV_ACTION_FLAG)
action == EV_ACTION_FABJEEP || action == EV_ACTION_FABARMURE ||
action == EV_ACTION_FABMINE || action == EV_ACTION_FLOWER1 ||
action == EV_ACTION_CULTIVE || action == EV_ACTION_FLAG)
{
cel.x = (cel.x / 2) * 2;
cel.y = (cel.y / 2) * 2;