|
@@ -130,6 +130,10 @@ int main()
|
|
|
putBloc(DESERT, world, cursorPos.y, cursorPos.x);
|
|
|
drawWorld(world, tileSet, map);
|
|
|
}
|
|
|
+ if (event.button.button == 3) {
|
|
|
+ putBloc(GRASS, world, cursorPos.y, cursorPos.x);
|
|
|
+ drawWorld(world, tileSet, map);
|
|
|
+ }
|
|
|
break;
|
|
|
} // end switch event type
|
|
|
} // end of message processing
|