model="models/items/a_cells.md3"
*/
-/*QUAKED item_flag_team1 (1 0 0) (-32 -32 -37) (32 32 37)
+/*QUAKED item_flag_team1 (1 0 0) (-32 -32 0) (32 32 74)
CTF flag for team one (Red). Use more than one if you really insist.
-------- KEYS --------
model: model to use
zbqry="zbqryf/pgs/enqvnag/synt_erq_enqvnag.zq3"
*/
-/*QUAKED item_flag_team2 (0 0 1) (-32 -32 -37) (32 32 37)
+/*QUAKED item_flag_team2 (0 0 1) (-32 -32 0) (32 32 74)
CTF flag for team two (Blue). Use more than one if you really insist.
-------- KEYS --------
model: model to use
template<typename Element, typename OtherElement>
inline Element float_snapped(const Element& f, const OtherElement& snap)
{
- return Element(float_to_integer(f / snap) * snap);
+ //return Element(float_to_integer(f / snap) * snap);
+ return Element(llrint(f / snap) * snap); // llrint has more significant bits
}
/// \brief Returns true if \p f has no decimal fraction part.