hedgewars/PascalExports.pas
changeset 3680 aaf832c6fbd7
parent 3672 f225b94a4411
child 3697 d5b30d6373fc
--- a/hedgewars/PascalExports.pas	Sat Jul 31 08:19:56 2010 +0200
+++ b/hedgewars/PascalExports.pas	Sat Jul 31 10:39:20 2010 +0200
@@ -54,6 +54,17 @@
         followGear:= CurrentHedgehog^.Gear;
 end;
 
+function HW_zoomFactor: GLfloat; cdecl; export;
+begin
+    exit( ZoomValue / cDefaultZoomLevel );
+end;
+
+function HW_zoomLevel: LongInt; cdecl; export;
+begin
+    writelntoconsole(inttostr(trunc((ZoomValue - cDefaultZoomLevel) / cZoomDelta) ));
+    exit( trunc((ZoomValue - cDefaultZoomLevel) / cZoomDelta) );
+end;
+
 procedure HW_ammoMenu; cdecl; export;
 begin
     rightClick:= true;