figbux
[xonotic/xonotic.git] / misc / tools / xonotic-map-compiler-autobuild
index 7e2af9395b28dc4b73aedbf1320f9012cd0f549c..1c8b8d681043125e7f8a22603e1d41d1586c84dc 100755 (executable)
@@ -189,7 +189,8 @@ screenshotthemap()
        fi
        rm -rf ~/.xonotic
        (
-               ../../misc/tools/xonotic-map-screenshot "$M" $screenshot_override +scr_screenshot_name "$M"
+               cd ../..
+               misc/tools/xonotic-map-screenshot "$M" $screenshot_override +scr_screenshot_name "$M"
        )
        if ! mv ~/.xonotic/data/screenshots "$M-$blobhash"; then
                if [ -n "$IRCSPAM" ]; then