blob: a79ac0883d433d45e88739118c105821bd0ae502 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
@def start = mSec() # start time
@def mod_count = 0 # modification counter
@function isRoad # flag
@pdef t = $1 & 0x1f
@return t <= 0x05 || t == 0x17 || t == 0x1d
@endfunction
@for t=0;tri$n()-1
@if !isRoad(tri$flag(t,2))
@def status = tri$remove(t)
@endif
@endfor
@echo " - " mod_count " of " tri$n() " triangles lowered in " (mSec()-start) " msec."
|