2.3.5 Piety display 64bit patch

Everything from To-Do lists to discussion of the latest developments for ToME 3.x.x go here

Moderator: Moderator

Post Reply
Message
Author
elcugo
Reaper
Posts: 440
Joined: Thu Sep 27, 2007 6:26 am
Location: México
Contact:

2.3.5 Piety display 64bit patch

#1 Post by elcugo »

A harmless but annoying 64bit display bug was bothering me, so i decided to hunt it and fix it. It's about the piety display that only affect 64 bits machines in 2.3.5.

Code: Select all

diff -rU1 tome-235-src.orig/src/xtra1.c tome-235-src/src/xtra1.c
--- tome-235-src.orig/src/xtra1.c	2009-09-27 15:07:16.000000000 -0500
+++ tome-235-src/src/xtra1.c	2009-09-27 15:08:29.000000000 -0500
@@ -148,3 +148,3 @@
 
-	sprintf(tmp, "%9ld", p_ptr->grace);
+	sprintf(tmp, "%9ld", (long) p_ptr->grace);

PS: I want to commit it, but instructions about checking out only version 2.3.x from CVS are gone, if some kind soul would post the instructions again I would be highly grateful.
sign: File not found.

Nerdanel
Sher'Tul
Posts: 1461
Joined: Mon Jul 07, 2003 5:22 pm
Location: Finland

#2 Post by Nerdanel »

Set the CVSROOT environment variable or include it in the command line (it's the same as with ToME 3) and then:

Code: Select all

cvs checkout tome2
The CVS directory uses plain "tome" for the ToME 3 module, "t-engine" for the T-Engine, and "tome2" for the entire ToME 2.
Zothiqband -- still an Angband variant.

elcugo
Reaper
Posts: 440
Joined: Thu Sep 27, 2007 6:26 am
Location: México
Contact:

#3 Post by elcugo »

Ups! I completely missed your message. I commited the patch to the 2.3.x branch but I guess I should commit it to 2.x too (for 2.4?)
sign: File not found.

Post Reply