A* — How to not test diagonal nodes?

Does anyone know how to prevent diagonal nodes from being tested when using A* pathfinding? My character poses are only four way and it seems a waste of processing power to even bother checking the diagonals.

Thanks :slight_smile: