openbsd-ports/games/ivan/patches/patch-Main_Source_script_cpp
espie 3398fe88f4 template ctor is A<T>::A()
both gcc3 and 4 agree
2010-05-23 15:58:02 +00:00

40 lines
1.4 KiB
Plaintext

$OpenBSD: patch-Main_Source_script_cpp,v 1.1 2010/05/23 15:58:02 espie Exp $
--- Main/Source/script.cpp.orig Sun May 23 17:37:11 2010
+++ Main/Source/script.cpp Sun May 23 17:38:08 2010
@@ -471,7 +471,7 @@ void contentscript<character>::InitDataMap()
INIT_ENTRY(Flags);
}
-contentscript<character>::contentscript<character>()
+contentscript<character>::contentscript()
: INIT(Team, DEFAULT_TEAM),
INIT(Flags, 0)
{ }
@@ -498,7 +498,7 @@ character* contentscript<character>::Instantiate(int S
return Instance;
}
-contentscript<item>::contentscript<item>()
+contentscript<item>::contentscript()
: INIT(Category, ANY_CATEGORY),
INIT(MinPrice, 0),
INIT(MaxPrice, MAX_PRICE),
@@ -592,7 +592,7 @@ void contentscript<glterrain>::InitDataMap()
INIT_ENTRY(IsInside);
}
-contentscript<olterrain>::contentscript<olterrain>()
+contentscript<olterrain>::contentscript()
: INIT(VisualEffects, 0),
INIT(AttachedArea, DEFAULT_ATTACHED_AREA),
INIT(AttachedEntry, DEFAULT_ATTACHED_ENTRY)
@@ -679,7 +679,7 @@ void squarescript::ReadFrom(inputfile& SaveFile)
}
}
-template <class type, class contenttype> contentmap<type, contenttype>::contentmap<type, contenttype>() : ContentMap(0) { }
+template <class type, class contenttype> contentmap<type, contenttype>::contentmap() : ContentMap(0) { }
template <class type, class contenttype> contentmap<type, contenttype>::~contentmap<type, contenttype>()
{