aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-07-22 07:48:22 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-07-22 07:48:22 +0200
commit02653573d27efa13d8590504a8d30866fe5b093e (patch)
tree0894fb522ed13d77e6b104183fb6f3a62b6d9741 /src
parent5c66664aef852c01c8ec8f79856ba081cf01446b (diff)
parent21b7a272c4558795f5e8b7d8af859d51dd616d31 (diff)
downloadminetest-02653573d27efa13d8590504a8d30866fe5b093e.tar.gz
minetest-02653573d27efa13d8590504a8d30866fe5b093e.tar.bz2
minetest-02653573d27efa13d8590504a8d30866fe5b093e.zip
Merge remote-tracking branch 'erlehmann/master'
Conflicts (from the introduction of fr translations): src/CMakeLists.txt
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt13
-rw-r--r--src/content_sao.cpp2
2 files changed, 14 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 8c6e1d450..f3dee7f30 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -268,6 +268,7 @@ if(BUILD_CLIENT)
if (USE_GETTEXT)
install(FILES ${CMAKE_BINARY_DIR}/locale/de/LC_MESSAGES/minetest-delta.mo DESTINATION locale/de/LC_MESSAGES)
+ install(FILES ${CMAKE_BINARY_DIR}/locale/fr/LC_MESSAGES/minetest-c55.mo DESTINATION locale/fr/LC_MESSAGES)
endif()
if(WIN32)
@@ -294,6 +295,7 @@ endif(BUILD_SERVER)
if (USE_GETTEXT)
add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/locale/de/LC_MESSAGES COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/locale/de/LC_MESSAGES COMMENT "mo-update [de]: Creating locale directory.")
+ add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/locale/fr/LC_MESSAGES COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/locale/fr/LC_MESSAGES COMMENT "mo-update [fr]: Creating locale directory.")
add_custom_command(
OUTPUT ${CMAKE_BINARY_DIR}/locale/de/LC_MESSAGES/minetest-delta.mo
@@ -304,7 +306,18 @@ if (USE_GETTEXT)
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/po/de
COMMENT "mo-update [de]: Creating mo file."
)
+ add_custom_command(
+ OUTPUT ${CMAKE_BINARY_DIR}/locale/fr/LC_MESSAGES/minetest-c55.mo
+ COMMAND ${GETTEXT_MSGFMT} -o ${CMAKE_BINARY_DIR}/locale/fr/LC_MESSAGES/minetest-c55.mo ${CMAKE_SOURCE_DIR}/po/fr/minetest-c55.po
+ DEPENDS
+ ${CMAKE_BINARY_DIR}/locale/fr/LC_MESSAGES
+ ${CMAKE_SOURCE_DIR}/po/fr/minetest-c55.po
+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/po/fr
+ COMMENT "mo-update [fr]: Creating mo file."
+ )
+
add_custom_target(translation_de ALL COMMENT "mo update [de]" DEPENDS ${CMAKE_BINARY_DIR}/locale/de/LC_MESSAGES/minetest-delta.mo)
+ add_custom_target(translation_fr ALL COMMENT "mo update [fr]" DEPENDS ${CMAKE_BINARY_DIR}/locale/fr/LC_MESSAGES/minetest-c55.mo)
endif(USE_GETTEXT)
# Subdirectories
diff --git a/src/content_sao.cpp b/src/content_sao.cpp
index aeeafc2f8..0b81855c1 100644
--- a/src/content_sao.cpp
+++ b/src/content_sao.cpp
@@ -809,7 +809,7 @@ void FireflySAO::step(float dtime, bool send_recommended)
Move it, with collision detection
*/
- core::aabbox3d<f32> box(-BS/3.,0.0,-BS/3., BS/3.,BS*2./3.,BS/3.);
+ core::aabbox3d<f32> box(-BS/3.,-BS*2/3.0,-BS/3., BS/3.,BS*4./3.,BS/3.);
collisionMoveResult moveresult;
// Maximum movement without glitches
f32 pos_max_d = BS*0.25;