Fixing shake camera (#6744)

Fixes #6741
This commit is contained in:
Mykhailo Bykhovtsev
2019-07-17 22:08:37 -07:00
committed by Erki
parent 35b6593444
commit df4d8c1d08
2 changed files with 43 additions and 2 deletions

View File

@@ -426,7 +426,7 @@ It's fairly easy to fix if dealing with single letters but not so much with comp
var/x
for(x=0; x<duration, x++)
if(M.client)
if(!M.client)
return
if(aiEyeFlag)
M.client.eye = locate(dd_range(1,oldeye.loc.x+rand(-strength,strength),world.maxx),dd_range(1,oldeye.loc.y+rand(-strength,strength),world.maxy),oldeye.loc.z)
@@ -438,7 +438,7 @@ It's fairly easy to fix if dealing with single letters but not so much with comp
//Will make the strength falloff after the duration.
//This helps to reduce jarring effects of major screenshaking suddenly returning to stability
//Recommended taper values are 0.05-0.1
if(M.client)
if(!M.client)
return
if (taper > 0)
while (strength > 0)