File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -6566,7 +6566,7 @@ Functions
65666566* ``setAnimationInfo(workshop_type, frames, frame_skip) ``
65676567
65686568 Animate workshop by replacing displayed tiles (or graphical tiles). There are two ways this works:
6569- if ``frame_skip>= 0 `` then it shows each frame for ``frame_skip `` of frames or if ``frame_skip<0 ``
6569+ if ``frame_skip>0 `` then it shows each frame for ``frame_skip `` of frames or if ``frame_skip<= 0 ``
65706570 Frames are synchronized with the machines this building is connected to.
65716571
65726572 :workshop_type: custom workshop string id, e.g. ``SOAPMAKER `` or numeric id
Original file line number Diff line number Diff line change @@ -539,9 +539,7 @@ static int setAnimationInfo(lua_State* L)
539539 // animation
540540 loadFrames (L, def, 2 );
541541 def.frame_skip = luaL_optinteger (L, 3 , -1 );
542- if (def.frame_skip == 0 )
543- def.frame_skip = 1 ;
544- if (def.frame_skip < 0 )
542+ if (def.frame_skip <= 0 )
545543 def.machine_timing = true ;
546544 else
547545 def.machine_timing = false ;
You can’t perform that action at this time.
0 commit comments