mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-01 00:21:43 +00:00
- fixed copy/paste error in secmovefac. (It returned friction instead of movefactor...)
This commit is contained in:
parent
f9ae304596
commit
5a8062abba
1 changed files with 1 additions and 1 deletions
|
@ -545,7 +545,7 @@ inline fixed_t secfriction(const sector_t *sec, int plane = sector_t::floor)
|
|||
|
||||
inline fixed_t secmovefac(const sector_t *sec, int plane = sector_t::floor)
|
||||
{
|
||||
if (sec->Flags & SECF_FRICTION) return sec->friction;
|
||||
if (sec->Flags & SECF_FRICTION) return sec->movefactor;
|
||||
fixed_t movefactor = Terrains[sec->GetTerrain(plane)].MoveFactor;
|
||||
return movefactor != 0 ? movefactor : ORIG_FRICTION_FACTOR;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue