@@ -260,9 +260,11 @@ void read_object_properties(lua_State *L, int index,
260260
261261 getboolfield (L, -1 , " is_visible" , prop->is_visible );
262262 getboolfield (L, -1 , " makes_footstep_sound" , prop->makes_footstep_sound );
263- getfloatfield (L, -1 , " automatic_rotate" , prop->automatic_rotate );
264263 if (getfloatfield (L, -1 , " stepheight" , prop->stepheight ))
265264 prop->stepheight *= BS;
265+ getboolfield (L, -1 , " can_zoom" , prop->can_zoom );
266+
267+ getfloatfield (L, -1 , " automatic_rotate" , prop->automatic_rotate );
266268 lua_getfield (L, -1 , " automatic_face_movement_dir" );
267269 if (lua_isnumber (L, -1 )) {
268270 prop->automatic_face_movement_dir = true ;
@@ -344,10 +346,13 @@ void push_object_properties(lua_State *L, ObjectProperties *prop)
344346 lua_setfield (L, -2 , " is_visible" );
345347 lua_pushboolean (L, prop->makes_footstep_sound );
346348 lua_setfield (L, -2 , " makes_footstep_sound" );
347- lua_pushnumber (L, prop->automatic_rotate );
348- lua_setfield (L, -2 , " automatic_rotate" );
349349 lua_pushnumber (L, prop->stepheight / BS);
350350 lua_setfield (L, -2 , " stepheight" );
351+ lua_pushboolean (L, prop->can_zoom );
352+ lua_setfield (L, -2 , " can_zoom" );
353+
354+ lua_pushnumber (L, prop->automatic_rotate );
355+ lua_setfield (L, -2 , " automatic_rotate" );
351356 if (prop->automatic_face_movement_dir )
352357 lua_pushnumber (L, prop->automatic_face_movement_dir_offset );
353358 else
0 commit comments