#nuvie@irc.freenode.net logs for 11 Sep 2016 (GMT)

Archive Today Yesterday Tomorrow
Nuvie homepage


[00:22:39] --> Malignant_Manor has joined #nuvie
[00:22:52] <Malignant_Manor> Yuv422: have you read the logs?
[00:23:37] <Yuv422> hey Malignant_Manor
[00:23:40] * Yuv422 looks
[00:29:14] <Yuv422> Is it this that’s causing your compile issues
[00:29:15] <Yuv422> + float window_scale_w = 1.0, window_scale_h = 1.0;
[00:29:46] <Yuv422> souds like we could just move the init into the constructor
[00:30:31] <Yuv422> I’d probably like to stay away from using C++11 stuff if we can
[00:30:51] <Yuv422> just so we don’t limit our platform / compiler options too much
[00:31:52] <Yuv422> if there is another C++11 compatible solution available
[00:33:01] <Malignant_Manor> Yuv422: Those floats are the issue.
[00:33:21] <Yuv422> ah k
[00:33:28] <Yuv422> what compiler are you using?
[00:34:16] <Malignant_Manor> Yuv422: GCC 4.6.2
[00:34:25] <Yuv422> ah k
[00:34:26] <Malignant_Manor> Mingw
[00:35:05] <Yuv422> I’m using LLVM these days
[00:35:09] <Malignant_Manor> I think I might have went back to that old version for some reason.
[00:35:32] <Yuv422> because apple moved away from gcc
[00:35:46] <Malignant_Manor> I was thinking it compiled before. That could have been on the other computer though.
[00:36:48] <Malignant_Manor> camparing weight == 0 worked for me but I don't know if it could cause issues other than the warning.
[00:37:45] <Malignant_Manor> Wouldn't it be zero unless there was an item in the inventory?
[00:42:34] <Malignant_Manor> window_scale_w and h might already get initialized to scale in init_sdl2_window.
[00:46:42] <Yuv422> I think I was giving them values to fix some other warnings about possible use of unassigned variables
[00:48:21] <Yuv422> + if(actor->get_strength() < weight && !game->using_hackmove())
[00:48:39] <Yuv422> we should probably cast get_strength() to a float
[00:52:41] <Yuv422> or cast/round the weight var down to an int
[01:10:21] <Malignant_Manor> well I think weight would need to be rounded up for comparisons if not keeping it a float.
[01:11:27] <Malignant_Manor> at least in that example
[01:38:39] <Yuv422> bbl
[01:38:43] <-- Yuv422 has left IRC (Quit: Yuv422)
[01:53:12] <-- Dominus has left IRC (Ping timeout: 244 seconds)
[01:54:24] --> Dominus has joined #nuvie
[01:54:24] <-- Dominus has left IRC (Changing host)
[01:54:24] --> Dominus has joined #nuvie
[01:57:35] <-- Malignant_Manor has left IRC (Quit: ChatZilla 0.9.92 [Firefox 48.0.2/20160823121617])
[03:18:01] --> Malignant_Manor has joined #nuvie
[03:18:29] <Malignant_Manor> Here is a diff showing all the changes for correct weight display. http://pastebin.com/zT4yU0bw
[03:20:54] <Malignant_Manor> There is no need to check for if the float is equal to zero since I moved the comparisons around.
[03:22:57] <-- Malignant_Manor has left IRC (Quit: ChatZilla 0.9.92 [Firefox 48.0.2/20160823121617])
[05:20:06] --> Yuv422 has joined #nuvie
[05:48:09] <-- Yuv422 has left IRC (Quit: Yuv422)
[08:59:17] <-- Lightkey has left IRC (Ping timeout: 255 seconds)
[09:12:42] --> Lightkey has joined #nuvie
[16:47:58] <-- Lightkey has left IRC (Remote host closed the connection)
[16:52:03] --> Lightkey has joined #nuvie
[16:57:02] <-- Lightkey has left IRC (Quit: Leaving)
[16:57:55] --> Lightkey has joined #nuvie
[17:20:50] <-- Lightkey has left IRC (Remote host closed the connection)
[17:22:32] --> Lightkey has joined #nuvie