shithub: puzzles

Download patch

ref: 0dbbd52935b8b17b3b3ab3d9ae6271cde891f70b
parent: e616d7aac9fff2d65bde4c6f8dcfc8d1222dc803
author: Ben Harris <bjh21@bjh21.me.uk>
date: Sat Jan 7 17:29:17 EST 2023

Palisade: remove assertion from decode_ui()

Other games tolerate receiving an encoded game_ui even if they can
never generate one.  This is sensible, since it means that if a new
version starts saving UI state, old versions can load save files
generated by those newer versions.

--- a/palisade.c
+++ b/palisade.c
@@ -894,7 +894,6 @@
 
 static void decode_ui(game_ui *ui, const char *encoding)
 {
-    assert (encoding == NULL);
 }
 
 static void game_changed_state(game_ui *ui, const game_state *oldstate,