38 lines
846 B
Text
38 lines
846 B
Text
$NetBSD: patch-ao,v 1.4 2016/05/07 09:57:54 joerg Exp $
|
|
|
|
--- cmn/game_style.cpp.orig 2003-03-22 20:47:42.000000000 +0000
|
|
+++ cmn/game_style.cpp
|
|
@@ -29,19 +29,19 @@
|
|
|
|
// Include Files
|
|
#include "stdafx.h"
|
|
-extern "C" {
|
|
-#include <string.h>
|
|
-}
|
|
+#include <cstring>
|
|
+#include <inttypes.h>
|
|
|
|
#if X11
|
|
-#include <strstream.h>
|
|
+#include <strstream>
|
|
+using namespace std;
|
|
#endif
|
|
|
|
#if WIN32
|
|
#include <strstrea.h>
|
|
#endif
|
|
|
|
-#include <iomanip.h>
|
|
+#include <iomanip>
|
|
#include "utils.h"
|
|
#include "coord.h"
|
|
#include "world.h"
|
|
@@ -2680,7 +2680,7 @@ int ZigZag::new_level_check(int,WorldP w
|
|
HumanP human = locator->get_human(n);
|
|
if (human) {
|
|
// previous depth
|
|
- int depthOld = (int)human->get_data();
|
|
+ int depthOld = (int)(intptr_t)human->get_data();
|
|
Id id = human->get_id();
|
|
|
|
// Get physical for intelligence
|