@@ -260,9 +260,11 @@ void read_object_properties(lua_State *L, int index,
260
260
261
261
getboolfield (L, -1 , " is_visible" , prop->is_visible );
262
262
getboolfield (L, -1 , " makes_footstep_sound" , prop->makes_footstep_sound );
263
- getfloatfield (L, -1 , " automatic_rotate" , prop->automatic_rotate );
264
263
if (getfloatfield (L, -1 , " stepheight" , prop->stepheight ))
265
264
prop->stepheight *= BS;
265
+ getboolfield (L, -1 , " can_zoom" , prop->can_zoom );
266
+
267
+ getfloatfield (L, -1 , " automatic_rotate" , prop->automatic_rotate );
266
268
lua_getfield (L, -1 , " automatic_face_movement_dir" );
267
269
if (lua_isnumber (L, -1 )) {
268
270
prop->automatic_face_movement_dir = true ;
@@ -344,10 +346,13 @@ void push_object_properties(lua_State *L, ObjectProperties *prop)
344
346
lua_setfield (L, -2 , " is_visible" );
345
347
lua_pushboolean (L, prop->makes_footstep_sound );
346
348
lua_setfield (L, -2 , " makes_footstep_sound" );
347
- lua_pushnumber (L, prop->automatic_rotate );
348
- lua_setfield (L, -2 , " automatic_rotate" );
349
349
lua_pushnumber (L, prop->stepheight / BS);
350
350
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" );
351
356
if (prop->automatic_face_movement_dir )
352
357
lua_pushnumber (L, prop->automatic_face_movement_dir_offset );
353
358
else
0 commit comments