Skip to content

Instantly share code, notes, and snippets.

View Langerz82's full-sized avatar

Joshua L Langerz82

View GitHub Profile
@Langerz82
Langerz82 / astar.js
Last active February 17, 2021 20:47
Advanced A* (A-Star) algorithm for a path finder. This does pixel based path finding, for map grids and is an advance on the original authors code.
define(function() {
var AStar = (function () {
/**
* Advanced A* (A-Star) algorithm for a path finder.
* This does pixel based path finding, for map grids and is an advance
* on the original authors code.
*
@Langerz82
Langerz82 / lplorganiser.html
Last active February 1, 2021 08:15
LPL File Organiser for RetroArch Arcade ROMS. Linux.
<!DOCTYPE HTML>
<!--
This file is part of lplorganiser.js.
License: GPL3.
Author: Langerz82.
Copyright: Langerz82 2020.
-->
<html>
<head>
<script src="lplorganiser.js"></script>
/***************************************************************************
fileio.c
File access functions.
Copyright (c) 1996-2006, Nicola Salmoria and the MAME Team.
Visit http://mamedev.org for licensing and usage restrictions.
***************************************************************************/
@Langerz82
Langerz82 / xencode.sh
Created November 4, 2020 00:10
encodes ROM zip with x encode zip file
#!/bin/bash
mkdir tmp
cd tmp
unzip -v ../$1.zip
unzip -v ../$1x.zip
rm ../$1.zip
zip -v ../$1.zip *.*
cd ..
rm -f -r tmp
define(function() {
var AStar = (function () {
/**
* A* (A-Star) algorithm for a path finder
* @originalauthor Andrea Giammarchi
* @revisedauthor Langerz82
* @license Proprietary.
define(function() {
var AStar = (function () {
/**
* A* (A-Star) algorithm for a path finder
* @author Andrea Giammarchi
* @license Mit Style License
*/
diff --git a/apps/openmw/engine.cpp b/apps/openmw/engine.cpp
index 1299fde0d..dd0839d60 100644
--- a/apps/openmw/engine.cpp
+++ b/apps/openmw/engine.cpp
@@ -232,6 +232,7 @@ OMW::Engine::Engine(Files::ConfigurationManager& configurationManager)
, mFSStrict (false)
, mScriptBlacklistUse (true)
, mNewGame (false)
+ , mPhysicsFPS(60)
, mCfgMgr(configurationManager)
diff --git a/apps/openmw/mwmechanics/aicombat.cpp b/apps/openmw/mwmechanics/aicombat.cpp
index ee1b9cecd..b0b4d994d 100644
--- a/apps/openmw/mwmechanics/aicombat.cpp
+++ b/apps/openmw/mwmechanics/aicombat.cpp
@@ -133,7 +133,10 @@ namespace MWMechanics
}
storage.updateCombatMove(duration);
+ storage.mRotateMove = false;
if (storage.mReadyToAttack) updateActorsMovement(actor, duration, storage);
diff --git a/gamefilesd/level/afterLevelLoad.json b/gamefilesd/level/afterLevelLoad.json
index 1b694b6..4ea1661 100755
--- a/gamefilesd/level/afterLevelLoad.json
+++ b/gamefilesd/level/afterLevelLoad.json
@@ -30,5 +30,12 @@
"then": { "name": "audio.stop", "id": "main" },
"else": { "name": "audio.play", "id": "main" }
}
- ]
+ ],
{
"action": [
{
"name": "action.set",
"id": "updateLifeManaOrbs",
"action": [
{
"name": "<=",
"param1": "%currentLevel.currentPlayer.life%",
"param2": 0,