HybridDog / onomatopoeia

Isometric mapper for Minetest
GNU General Public License v3.0
6 stars 2 forks source link

Adapted to Python 3 #2

Closed wsourdeau closed 3 years ago

wsourdeau commented 3 years ago
wsourdeau commented 3 years ago

Since Python 3 is becoming the norm in modern distros, I thought it would be a good idea to adapt the code to it.

HybridDog commented 3 years ago

Thank you for opening the Pull Request. Could you change the formulas with integer casts to use integer divisions instead? For example, change int(16 * BLOCK_SIZE/2 + BLOCK_SIZE/2) to 16 * BLOCK_SIZE // 2 + BLOCK_SIZE // 2.

wsourdeau commented 3 years ago

Thank you for opening the Pull Request. Could you change the formulas with integer casts to use integer divisions instead? For example, change int(16 * BLOCK_SIZE/2 + BLOCK_SIZE/2) to 16 * BLOCK_SIZE // 2 + BLOCK_SIZE // 2.

Done! I had no idea about that operator. It works very well.