projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bbfd0b
)
Set fixed FOV for the wielded item
author
Kahrl
<kahrl@gmx.net>
Mon, 6 Feb 2012 22:12:33 +0000
(23:12 +0100)
committer
Perttu Ahola
<celeron55@gmail.com>
Sat, 10 Mar 2012 16:15:31 +0000
(18:15 +0200)
src/camera.cpp
patch
|
blob
|
history
diff --git
a/src/camera.cpp
b/src/camera.cpp
index 041dd9de51bfd26f38eb7fba6474dc32a6c470a0..b9e1273c6e144d908df65fa1dad8ea86fd3011ca 100644
(file)
--- a/
src/camera.cpp
+++ b/
src/camera.cpp
@@
-504,7
+504,7
@@
void Camera::drawWieldedTool()
// Draw the wielded node (in a separate scene manager)
scene::ICameraSceneNode* cam = m_wieldmgr->getActiveCamera();
cam->setAspectRatio(m_cameranode->getAspectRatio());
- cam->setFOV(
m_cameranode->getFOV()
);
+ cam->setFOV(
72.0*PI/180.0
);
cam->setNearValue(0.1);
cam->setFarValue(100);
m_wieldmgr->drawAll();