1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-08 05:16:00 +00:00

renamed the size function to isize

This commit is contained in:
Zeno Rogue
2018-06-22 14:47:24 +02:00
parent 23874e0de4
commit 63869c6d33
51 changed files with 596 additions and 595 deletions

View File

@@ -88,10 +88,10 @@ Java_com_roguetemple_hyperroid_HyperRogue_loadMap
LOCK(NULL, "loadMap")
jintArray result;
result = env->NewIntArray(size(graphdata));
result = env->NewIntArray(isize(graphdata));
if(result == NULL) return NULL;
env->SetIntArrayRegion(result, 0, size(graphdata), &*graphdata.begin());
env->SetIntArrayRegion(result, 0, isize(graphdata), &*graphdata.begin());
// delref;
// env->DeleteLocalRef(result);
// if(debfile) fprintf(debfile, "loadmap finished.\n"), fflush(debfile);
@@ -379,7 +379,7 @@ void uploadAll(JNIEnv *env, jobject thiz) {
orientation_requested = false;
}
for(int i=0; i<size(soundsToPlay); i++) {
for(int i=0; i<isize(soundsToPlay); i++) {
jmethodID mid = env->GetMethodID(cls, "playSound", "(Ljava/lang/String;I)V");
jobject str = env->NewStringUTF(soundsToPlay[i].first.c_str());
env->CallVoidMethod(thiz, mid, str, soundsToPlay[i].second);